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

Side by Side Diff: webkit/plugins/ppapi/ppb_flash_net_connector_impl.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 "webkit/plugins/ppapi/ppb_flash_net_connector_impl.h" 5 #include "webkit/plugins/ppapi/ppb_flash_net_connector_impl.h"
6 6
7 #include "ppapi/c/pp_completion_callback.h" 7 #include "ppapi/c/pp_completion_callback.h"
8 #include "ppapi/c/private/ppb_flash_net_connector.h" 8 #include "ppapi/c/private/ppb_flash_net_connector.h"
9 #include "webkit/plugins/ppapi/common.h" 9 #include "webkit/plugins/ppapi/common.h"
10 #include "webkit/plugins/ppapi/plugin_delegate.h" 10 #include "webkit/plugins/ppapi/plugin_delegate.h"
11 #include "webkit/plugins/ppapi/plugin_module.h" 11 #include "webkit/plugins/ppapi/plugin_module.h"
12 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" 12 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
13 #include "webkit/plugins/ppapi/resource_helper.h" 13 #include "webkit/plugins/ppapi/resource_helper.h"
14 14
15 using ppapi::thunk::PPB_Flash_NetConnector_API; 15 using ppapi::thunk::PPB_Flash_NetConnector_API;
16 using ppapi::TrackedCallback; 16 using ppapi::TrackedCallback;
17 17
18 namespace webkit { 18 namespace webkit {
19 namespace ppapi { 19 namespace ppapi {
20 20
21 PPB_Flash_NetConnector_Impl::PPB_Flash_NetConnector_Impl(PP_Instance instance) 21 PPB_Flash_NetConnector_Impl::PPB_Flash_NetConnector_Impl(PP_Instance instance)
22 : Resource(instance), 22 : Resource(::ppapi::OBJECT_IS_IMPL, instance),
23 socket_out_(NULL), 23 socket_out_(NULL),
24 local_addr_out_(NULL), 24 local_addr_out_(NULL),
25 remote_addr_out_(NULL) { 25 remote_addr_out_(NULL) {
26 } 26 }
27 27
28 PPB_Flash_NetConnector_Impl::~PPB_Flash_NetConnector_Impl() { 28 PPB_Flash_NetConnector_Impl::~PPB_Flash_NetConnector_Impl() {
29 } 29 }
30 30
31 PPB_Flash_NetConnector_API* 31 PPB_Flash_NetConnector_API*
32 PPB_Flash_NetConnector_Impl::AsPPB_Flash_NetConnector_API() { 32 PPB_Flash_NetConnector_Impl::AsPPB_Flash_NetConnector_API() {
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 socket_out_ = NULL; 124 socket_out_ = NULL;
125 local_addr_out_ = NULL; 125 local_addr_out_ = NULL;
126 remote_addr_out_ = NULL; 126 remote_addr_out_ = NULL;
127 TrackedCallback::ClearAndRun(&callback_, rv); 127 TrackedCallback::ClearAndRun(&callback_, rv);
128 } 128 }
129 129
130 } // namespace ppapi 130 } // namespace ppapi
131 } // namespace webkit 131 } // namespace webkit
132 132
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698