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

Side by Side Diff: ppapi/proxy/ppb_flash_file_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_flash_file_proxy.h ('k') | ppapi/proxy/ppb_flash_menu_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_flash_file_proxy.h" 5 #include "ppapi/proxy/ppb_flash_file_proxy.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/message_loop_proxy.h" 12 #include "base/message_loop_proxy.h"
13 #include "base/synchronization/lock.h" 13 #include "base/synchronization/lock.h"
14 #include "base/synchronization/waitable_event.h" 14 #include "base/synchronization/waitable_event.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "ipc/ipc_channel_proxy.h" 16 #include "ipc/ipc_channel_proxy.h"
17 #include "ipc/ipc_message.h" 17 #include "ipc/ipc_message.h"
18 #include "ipc/ipc_sync_message.h" 18 #include "ipc/ipc_sync_message.h"
19 #include "ppapi/c/pp_errors.h" 19 #include "ppapi/c/pp_errors.h"
20 #include "ppapi/c/pp_file_info.h" 20 #include "ppapi/c/pp_file_info.h"
21 #include "ppapi/c/private/ppb_flash_file.h" 21 #include "ppapi/c/private/ppb_flash_file.h"
22 #include "ppapi/proxy/plugin_dispatcher.h" 22 #include "ppapi/proxy/plugin_dispatcher.h"
23 #include "ppapi/proxy/plugin_resource.h" 23 #include "ppapi/proxy/plugin_resource.h"
24 #include "ppapi/proxy/ppapi_messages.h" 24 #include "ppapi/proxy/ppapi_messages.h"
25 25
26 using ppapi::HostResource;
27
26 namespace pp { 28 namespace pp {
27 namespace proxy { 29 namespace proxy {
28 30
29 namespace { 31 namespace {
30 32
31 // Given an error code and a handle result from a Pepper API call, converts to a 33 // Given an error code and a handle result from a Pepper API call, converts to a
32 // PlatformFileForTransit by sharing with the other side, closing the original 34 // PlatformFileForTransit by sharing with the other side, closing the original
33 // handle, possibly also updating the error value if an error occurred. 35 // handle, possibly also updating the error value if an error occurred.
34 IPC::PlatformFileForTransit PlatformFileToPlatformFileForTransit( 36 IPC::PlatformFileForTransit PlatformFileToPlatformFileForTransit(
35 Dispatcher* dispatcher, 37 Dispatcher* dispatcher,
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 void PPB_Flash_File_FileRef_Proxy::OnMsgQueryFile( 725 void PPB_Flash_File_FileRef_Proxy::OnMsgQueryFile(
724 const HostResource& host_resource, 726 const HostResource& host_resource,
725 PP_FileInfo* info, 727 PP_FileInfo* info,
726 int32_t* result) { 728 int32_t* result) {
727 *result = ppb_flash_file_module_local_target()-> 729 *result = ppb_flash_file_module_local_target()->
728 QueryFile(host_resource.host_resource(), info); 730 QueryFile(host_resource.host_resource(), info);
729 } 731 }
730 732
731 } // namespace proxy 733 } // namespace proxy
732 } // namespace pp 734 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_flash_file_proxy.h ('k') | ppapi/proxy/ppb_flash_menu_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698