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

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

Issue 9391013: Make a global enum to differentiate impl & proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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
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 "base/bind.h" 9 #include "base/bind.h"
10 #include "ppapi/c/pp_errors.h" 10 #include "ppapi/c/pp_errors.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 PP_NetAddress_Private* remote_addr_out, 72 PP_NetAddress_Private* remote_addr_out,
73 PP_CompletionCallback callback); 73 PP_CompletionCallback callback);
74 74
75 scoped_refptr<TrackedCallback> callback_; 75 scoped_refptr<TrackedCallback> callback_;
76 PP_FileHandle* socket_out_; 76 PP_FileHandle* socket_out_;
77 PP_NetAddress_Private* local_addr_out_; 77 PP_NetAddress_Private* local_addr_out_;
78 PP_NetAddress_Private* remote_addr_out_; 78 PP_NetAddress_Private* remote_addr_out_;
79 }; 79 };
80 80
81 FlashNetConnector::FlashNetConnector(const HostResource& resource) 81 FlashNetConnector::FlashNetConnector(const HostResource& resource)
82 : Resource(resource), 82 : Resource(OBJECT_IS_PROXY, resource),
83 socket_out_(NULL), 83 socket_out_(NULL),
84 local_addr_out_(NULL), 84 local_addr_out_(NULL),
85 remote_addr_out_(NULL) { 85 remote_addr_out_(NULL) {
86 } 86 }
87 87
88 FlashNetConnector::~FlashNetConnector() { 88 FlashNetConnector::~FlashNetConnector() {
89 } 89 }
90 90
91 PPB_Flash_NetConnector_API* FlashNetConnector::AsPPB_Flash_NetConnector_API() { 91 PPB_Flash_NetConnector_API* FlashNetConnector::AsPPB_Flash_NetConnector_API() {
92 return this; 92 return this;
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 } else { 297 } else {
298 dispatcher()->Send(new PpapiMsg_PPBFlashNetConnector_ConnectACK( 298 dispatcher()->Send(new PpapiMsg_PPBFlashNetConnector_ConnectACK(
299 API_ID_PPB_FLASH_NETCONNECTOR, 299 API_ID_PPB_FLASH_NETCONNECTOR,
300 info->resource, result, 300 info->resource, result,
301 IPC::InvalidPlatformFileForTransit(), std::string(), std::string())); 301 IPC::InvalidPlatformFileForTransit(), std::string(), std::string()));
302 } 302 }
303 } 303 }
304 304
305 } // namespace proxy 305 } // namespace proxy
306 } // namespace ppapi 306 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698