OLD | NEW |
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 Loading... |
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 |
OLD | NEW |