OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef PPAPI_PROXY_PPB_VIDEO_CAPTURE_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_VIDEO_CAPTURE_PROXY_H_ |
6 #define PPAPI_PROXY_PPB_VIDEO_CAPTURE_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_VIDEO_CAPTURE_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "ppapi/c/pp_instance.h" | 11 #include "ppapi/c/pp_instance.h" |
12 #include "ppapi/proxy/interface_proxy.h" | 12 #include "ppapi/proxy/interface_proxy.h" |
13 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" | 13 #include "ppapi/proxy/proxy_completion_callback_factory.h" |
14 #include "ppapi/proxy/serialized_structs.h" | 14 #include "ppapi/proxy/serialized_structs.h" |
15 #include "ppapi/shared_impl/ppb_device_ref_shared.h" | 15 #include "ppapi/shared_impl/ppb_device_ref_shared.h" |
16 #include "ppapi/utility/completion_callback_factory.h" | 16 #include "ppapi/utility/completion_callback_factory.h" |
17 | 17 |
18 struct PPP_VideoCapture_Dev; | 18 struct PPP_VideoCapture_Dev; |
19 struct PP_VideoCaptureDeviceInfo_Dev; | 19 struct PP_VideoCaptureDeviceInfo_Dev; |
20 | 20 |
21 namespace ppapi { | 21 namespace ppapi { |
22 | 22 |
23 class HostResource; | 23 class HostResource; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 void OnMsgEnumerateDevicesACK( | 57 void OnMsgEnumerateDevicesACK( |
58 const ppapi::HostResource& resource, | 58 const ppapi::HostResource& resource, |
59 int32_t result, | 59 int32_t result, |
60 const std::vector<ppapi::DeviceRefData>& devices); | 60 const std::vector<ppapi::DeviceRefData>& devices); |
61 void OnMsgOpenACK(const ppapi::HostResource& resource, int32_t result); | 61 void OnMsgOpenACK(const ppapi::HostResource& resource, int32_t result); |
62 | 62 |
63 void EnumerateDevicesACKInHost(int32_t result, | 63 void EnumerateDevicesACKInHost(int32_t result, |
64 const ppapi::HostResource& resource); | 64 const ppapi::HostResource& resource); |
65 void OpenACKInHost(int32_t result, const ppapi::HostResource& resource); | 65 void OpenACKInHost(int32_t result, const ppapi::HostResource& resource); |
66 | 66 |
67 pp::CompletionCallbackFactory<PPB_VideoCapture_Proxy, | 67 ProxyCompletionCallbackFactory<PPB_VideoCapture_Proxy> callback_factory_; |
68 ProxyNonThreadSafeRefCount> callback_factory_; | |
69 | 68 |
70 DISALLOW_COPY_AND_ASSIGN(PPB_VideoCapture_Proxy); | 69 DISALLOW_COPY_AND_ASSIGN(PPB_VideoCapture_Proxy); |
71 }; | 70 }; |
72 | 71 |
73 class PPP_VideoCapture_Proxy : public InterfaceProxy { | 72 class PPP_VideoCapture_Proxy : public InterfaceProxy { |
74 public: | 73 public: |
75 explicit PPP_VideoCapture_Proxy(Dispatcher* dispatcher); | 74 explicit PPP_VideoCapture_Proxy(Dispatcher* dispatcher); |
76 virtual ~PPP_VideoCapture_Proxy(); | 75 virtual ~PPP_VideoCapture_Proxy(); |
77 | 76 |
78 static const Info* GetInfo(); | 77 static const Info* GetInfo(); |
(...skipping 20 matching lines...) Expand all Loading... |
99 // In the host, this value is always NULL. | 98 // In the host, this value is always NULL. |
100 const PPP_VideoCapture_Dev* ppp_video_capture_impl_; | 99 const PPP_VideoCapture_Dev* ppp_video_capture_impl_; |
101 | 100 |
102 DISALLOW_COPY_AND_ASSIGN(PPP_VideoCapture_Proxy); | 101 DISALLOW_COPY_AND_ASSIGN(PPP_VideoCapture_Proxy); |
103 }; | 102 }; |
104 | 103 |
105 } // namespace proxy | 104 } // namespace proxy |
106 } // namespace ppapi | 105 } // namespace ppapi |
107 | 106 |
108 #endif // PPAPI_PROXY_PPB_VIDEO_CAPTURE_PROXY_H_ | 107 #endif // PPAPI_PROXY_PPB_VIDEO_CAPTURE_PROXY_H_ |
OLD | NEW |