OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PPAPI_PROXY_FLASH_RESOURCE_H_ |
| 6 #define PPAPI_PROXY_FLASH_RESOURCE_H_ |
| 7 |
| 8 #include "ppapi/proxy/connection.h" |
| 9 #include "ppapi/proxy/plugin_resource.h" |
| 10 #include "ppapi/proxy/ppapi_proxy_export.h" |
| 11 #include "ppapi/thunk/ppb_flash_functions_api.h" |
| 12 |
| 13 struct PP_ArrayOutput; |
| 14 |
| 15 namespace ppapi { |
| 16 namespace proxy { |
| 17 |
| 18 class PPAPI_PROXY_EXPORT FlashResource |
| 19 : public PluginResource, |
| 20 public NON_EXPORTED_BASE(thunk::PPB_Flash_Functions_API) { |
| 21 public: |
| 22 FlashResource(Connection connection, PP_Instance instance); |
| 23 virtual ~FlashResource(); |
| 24 |
| 25 // Resource overrides. |
| 26 virtual thunk::PPB_Flash_Functions_API* AsPPB_Flash_Functions_API() OVERRIDE; |
| 27 |
| 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: |
| 35 DISALLOW_COPY_AND_ASSIGN(FlashResource); |
| 36 }; |
| 37 |
| 38 } // namespace proxy |
| 39 } // namespace ppapi |
| 40 |
| 41 #endif // PPAPI_PROXY_FLASH_RESOURCE_H_ |
OLD | NEW |