Pepper_56_C++_interfaces
Pepper_56_C++_interfaces
 All Classes Namespaces Files Functions Typedefs Enumerations Macros Groups
url_data_source_samsung.h
Go to the documentation of this file.
1 // Copyright (c) 2016 Samsung Electronics. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef PPAPI_CPP_SAMSUNG_URL_DATA_SOURCE_SAMSUNG_H_
6 #define PPAPI_CPP_SAMSUNG_URL_DATA_SOURCE_SAMSUNG_H_
7 
8 #include <string>
9 
10 #include "ppapi/c/samsung/ppb_media_data_source_samsung.h"
12 #include "ppapi/cpp/resource.h"
14 #include "ppapi/cpp/var.h"
15 
22 namespace pp {
23 
24 class InstanceHandle;
25 
32  public:
35  URLDataSource_Samsung(const InstanceHandle& instance,
36  const std::string& url);
37 
39 
40  explicit URLDataSource_Samsung(PP_Resource resource);
41  URLDataSource_Samsung(PassRef, PP_Resource resource);
42 
43  URLDataSource_Samsung& operator=(const URLDataSource_Samsung& other);
44 
45  virtual ~URLDataSource_Samsung();
46 
56  int32_t GetStreamingProperty(
57  PP_StreamingProperty type,
59 
75  int32_t SetStreamingProperty(
76  PP_StreamingProperty type,
77  const Var& value,
78  const CompletionCallback& callback);
79 };
80 
81 } // namespace pp
82 
83 #endif // PPAPI_CPP_SAMSUNG_URL_DATA_SOURCE_SAMSUNG_H_
Definition: url_data_source_samsung.h:31
Definition: media_data_source_samsung.h:22
Definition: completion_callback.h:189
Definition: completion_callback.h:26
int32_t GetStreamingProperty(PP_StreamingProperty type, const CompletionCallbackWithOutput< pp::Var > &callback)
Definition: instance_handle.h:44
PassRef
Definition: pass_ref.h:17
A generic type used for passing data types between the module and the page.
Definition: var.h:23
int32_t SetStreamingProperty(PP_StreamingProperty type, const Var &value, const CompletionCallback &callback)
URLDataSource_Samsung(const InstanceHandle &instance, const std::string &url)