Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(705)

Side by Side Diff: ppapi/proxy/flash_resource.cc

Issue 11106019: PluginResource: Avoid having two sets of similar methods for talking with browser and renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/flash_font_file_resource.cc ('k') | ppapi/proxy/gamepad_resource.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ppapi/proxy/flash_font_file_resource.cc ('k') | ppapi/proxy/gamepad_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698