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

Side by Side Diff: ppapi/proxy/ppb_flash_net_connector_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_net_connector_proxy.h ('k') | ppapi/proxy/ppb_flash_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_net_connector_proxy.h" 5 #include "ppapi/proxy/ppb_flash_net_connector_proxy.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "ppapi/c/pp_errors.h" 9 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/c/private/ppb_flash_net_connector.h" 10 #include "ppapi/c/private/ppb_flash_net_connector.h"
11 #include "ppapi/proxy/enter_proxy.h" 11 #include "ppapi/proxy/enter_proxy.h"
12 #include "ppapi/proxy/plugin_dispatcher.h" 12 #include "ppapi/proxy/plugin_dispatcher.h"
13 #include "ppapi/proxy/plugin_resource.h" 13 #include "ppapi/proxy/plugin_resource.h"
14 #include "ppapi/proxy/ppapi_messages.h" 14 #include "ppapi/proxy/ppapi_messages.h"
15 #include "ppapi/proxy/serialized_var.h" 15 #include "ppapi/proxy/serialized_var.h"
16 #include "ppapi/thunk/enter.h" 16 #include "ppapi/thunk/enter.h"
17 #include "ppapi/thunk/ppb_flash_net_connector_api.h" 17 #include "ppapi/thunk/ppb_flash_net_connector_api.h"
18 #include "ppapi/thunk/resource_creation_api.h" 18 #include "ppapi/thunk/resource_creation_api.h"
19 #include "ppapi/thunk/thunk.h" 19 #include "ppapi/thunk/thunk.h"
20 20
21 using ppapi::HostResource;
21 using ppapi::thunk::EnterFunctionNoLock; 22 using ppapi::thunk::EnterFunctionNoLock;
22 using ppapi::thunk::PPB_Flash_NetConnector_API; 23 using ppapi::thunk::PPB_Flash_NetConnector_API;
23 using ppapi::thunk::ResourceCreationAPI; 24 using ppapi::thunk::ResourceCreationAPI;
24 25
25 namespace pp { 26 namespace pp {
26 namespace proxy { 27 namespace proxy {
27 28
28 std::string NetAddressToString(const PP_Flash_NetAddress& addr) { 29 std::string NetAddressToString(const PP_Flash_NetAddress& addr) {
29 return std::string(addr.data, std::min(static_cast<size_t>(addr.size), 30 return std::string(addr.data, std::min(static_cast<size_t>(addr.size),
30 sizeof(addr.data))); 31 sizeof(addr.data)));
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 } else { 337 } else {
337 dispatcher()->Send(new PpapiMsg_PPBFlashNetConnector_ConnectACK( 338 dispatcher()->Send(new PpapiMsg_PPBFlashNetConnector_ConnectACK(
338 INTERFACE_ID_PPB_FLASH_NETCONNECTOR, 339 INTERFACE_ID_PPB_FLASH_NETCONNECTOR,
339 info->resource, result, 340 info->resource, result,
340 IPC::InvalidPlatformFileForTransit(), std::string(), std::string())); 341 IPC::InvalidPlatformFileForTransit(), std::string(), std::string()));
341 } 342 }
342 } 343 }
343 344
344 } // namespace proxy 345 } // namespace proxy
345 } // namespace pp 346 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_flash_net_connector_proxy.h ('k') | ppapi/proxy/ppb_flash_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698