| 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_FLASH_RESOURCE_H_ | 5 #ifndef PPAPI_PROXY_FLASH_RESOURCE_H_ |
| 6 #define PPAPI_PROXY_FLASH_RESOURCE_H_ | 6 #define PPAPI_PROXY_FLASH_RESOURCE_H_ |
| 7 | 7 |
| 8 #include "ppapi/proxy/connection.h" | 8 #include "ppapi/proxy/connection.h" |
| 9 #include "ppapi/proxy/plugin_resource.h" | 9 #include "ppapi/proxy/plugin_resource.h" |
| 10 #include "ppapi/proxy/ppapi_proxy_export.h" | 10 #include "ppapi/proxy/ppapi_proxy_export.h" |
| 11 #include "ppapi/thunk/ppb_flash_functions_api.h" | 11 #include "ppapi/thunk/ppb_flash_functions_api.h" |
| 12 | 12 |
| 13 struct PP_ArrayOutput; | |
| 14 | |
| 15 namespace ppapi { | 13 namespace ppapi { |
| 16 namespace proxy { | 14 namespace proxy { |
| 17 | 15 |
| 18 class PPAPI_PROXY_EXPORT FlashResource | 16 class PPAPI_PROXY_EXPORT FlashResource |
| 19 : public PluginResource, | 17 : public PluginResource, |
| 20 public NON_EXPORTED_BASE(thunk::PPB_Flash_Functions_API) { | 18 public NON_EXPORTED_BASE(thunk::PPB_Flash_Functions_API) { |
| 21 public: | 19 public: |
| 22 FlashResource(Connection connection, PP_Instance instance); | 20 FlashResource(Connection connection, PP_Instance instance); |
| 23 virtual ~FlashResource(); | 21 virtual ~FlashResource(); |
| 24 | 22 |
| 25 // Resource overrides. | 23 // Resource overrides. |
| 26 virtual thunk::PPB_Flash_Functions_API* AsPPB_Flash_Functions_API() OVERRIDE; | 24 virtual thunk::PPB_Flash_Functions_API* AsPPB_Flash_Functions_API() OVERRIDE; |
| 27 | 25 |
| 28 // PPB_Flash_Functions_API. | |
| 29 virtual int32_t EnumerateVideoCaptureDevices( | |
| 30 PP_Instance instance, | |
| 31 PP_Resource video_capture, | |
| 32 const PP_ArrayOutput& devices) OVERRIDE; | |
| 33 | |
| 34 private: | 26 private: |
| 35 DISALLOW_COPY_AND_ASSIGN(FlashResource); | 27 DISALLOW_COPY_AND_ASSIGN(FlashResource); |
| 36 }; | 28 }; |
| 37 | 29 |
| 38 } // namespace proxy | 30 } // namespace proxy |
| 39 } // namespace ppapi | 31 } // namespace ppapi |
| 40 | 32 |
| 41 #endif // PPAPI_PROXY_FLASH_RESOURCE_H_ | 33 #endif // PPAPI_PROXY_FLASH_RESOURCE_H_ |
| OLD | NEW |