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 #include "ppapi/proxy/flash_resource.h" | 5 #include "ppapi/proxy/flash_resource.h" |
6 | 6 |
7 #include "ipc/ipc_message.h" | 7 #include "ipc/ipc_message.h" |
8 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
9 #include "ppapi/proxy/dispatch_reply_message.h" | 9 #include "ppapi/proxy/dispatch_reply_message.h" |
10 #include "ppapi/proxy/ppapi_messages.h" | 10 #include "ppapi/proxy/ppapi_messages.h" |
11 #include "ppapi/shared_impl/array_writer.h" | 11 #include "ppapi/shared_impl/array_writer.h" |
12 #include "ppapi/thunk/enter.h" | 12 #include "ppapi/thunk/enter.h" |
13 | 13 |
14 namespace ppapi { | 14 namespace ppapi { |
15 namespace proxy { | 15 namespace proxy { |
16 | 16 |
17 FlashResource::FlashResource(Connection connection, PP_Instance instance) | 17 FlashResource::FlashResource(Connection connection, PP_Instance instance) |
18 : PluginResource(connection, instance) { | 18 : PluginResource(connection, instance) { |
19 SendCreateToRenderer(PpapiHostMsg_Flash_Create()); | 19 SendCreate(RENDERER, PpapiHostMsg_Flash_Create()); |
20 } | 20 } |
21 | 21 |
22 FlashResource::~FlashResource() { | 22 FlashResource::~FlashResource() { |
23 } | 23 } |
24 | 24 |
25 thunk::PPB_Flash_Functions_API* FlashResource::AsPPB_Flash_Functions_API() { | 25 thunk::PPB_Flash_Functions_API* FlashResource::AsPPB_Flash_Functions_API() { |
26 return this; | 26 return this; |
27 } | 27 } |
28 | 28 |
29 int32_t FlashResource::EnumerateVideoCaptureDevices( | 29 int32_t FlashResource::EnumerateVideoCaptureDevices( |
(...skipping 27 matching lines...) Expand all Loading... |
57 } | 57 } |
58 | 58 |
59 if (!output.StoreResourceVector(device_resources)) | 59 if (!output.StoreResourceVector(device_resources)) |
60 return PP_ERROR_FAILED; | 60 return PP_ERROR_FAILED; |
61 | 61 |
62 return PP_OK; | 62 return PP_OK; |
63 } | 63 } |
64 | 64 |
65 } // namespace proxy | 65 } // namespace proxy |
66 } // namespace ppapi | 66 } // namespace ppapi |
OLD | NEW |