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

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

Issue 7623018: Move host resource from the proxy to the shared_impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed Created 9 years, 4 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/ppb_file_chooser_proxy.h ('k') | ppapi/proxy/ppb_file_ref_proxy.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ppb_file_chooser_proxy.h" 5 #include "ppapi/proxy/ppb_file_chooser_proxy.h"
6 6
7 #include <queue> 7 #include <queue>
8 8
9 #include "ppapi/c/dev/ppb_file_chooser_dev.h" 9 #include "ppapi/c/dev/ppb_file_chooser_dev.h"
10 #include "ppapi/c/pp_errors.h" 10 #include "ppapi/c/pp_errors.h"
11 #include "ppapi/c/private/ppb_proxy_private.h" 11 #include "ppapi/c/private/ppb_proxy_private.h"
12 #include "ppapi/proxy/enter_proxy.h" 12 #include "ppapi/proxy/enter_proxy.h"
13 #include "ppapi/proxy/host_dispatcher.h" 13 #include "ppapi/proxy/host_dispatcher.h"
14 #include "ppapi/proxy/plugin_dispatcher.h" 14 #include "ppapi/proxy/plugin_dispatcher.h"
15 #include "ppapi/proxy/plugin_resource.h" 15 #include "ppapi/proxy/plugin_resource.h"
16 #include "ppapi/proxy/ppapi_messages.h" 16 #include "ppapi/proxy/ppapi_messages.h"
17 #include "ppapi/proxy/ppb_file_ref_proxy.h" 17 #include "ppapi/proxy/ppb_file_ref_proxy.h"
18 #include "ppapi/proxy/serialized_var.h" 18 #include "ppapi/proxy/serialized_var.h"
19 #include "ppapi/thunk/thunk.h" 19 #include "ppapi/thunk/thunk.h"
20 20
21 using ::ppapi::thunk::PPB_FileChooser_API; 21 using ppapi::HostResource;
22 using ppapi::thunk::PPB_FileChooser_API;
22 23
23 namespace pp { 24 namespace pp {
24 namespace proxy { 25 namespace proxy {
25 26
26 class FileChooser : public PluginResource, 27 class FileChooser : public PluginResource,
27 public PPB_FileChooser_API { 28 public PPB_FileChooser_API {
28 public: 29 public:
29 FileChooser(const HostResource& resource); 30 FileChooser(const HostResource& resource);
30 virtual ~FileChooser(); 31 virtual ~FileChooser();
31 32
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 files.push_back(cur_create_info); 233 files.push_back(cur_create_info);
233 } 234 }
234 } 235 }
235 236
236 dispatcher()->Send(new PpapiMsg_PPBFileChooser_ChooseComplete( 237 dispatcher()->Send(new PpapiMsg_PPBFileChooser_ChooseComplete(
237 INTERFACE_ID_PPB_FILE_CHOOSER, chooser, result, files)); 238 INTERFACE_ID_PPB_FILE_CHOOSER, chooser, result, files));
238 } 239 }
239 240
240 } // namespace proxy 241 } // namespace proxy
241 } // namespace pp 242 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_file_chooser_proxy.h ('k') | ppapi/proxy/ppb_file_ref_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698