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

Side by Side Diff: webkit/plugins/ppapi/ppb_flash_net_connector_impl.h

Issue 7669055: Remove webkit::ppapi::Resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nulls auditeed 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
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 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FLASH_NET_CONNECTOR_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FLASH_NET_CONNECTOR_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_FLASH_NET_CONNECTOR_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FLASH_NET_CONNECTOR_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
10 #include "ppapi/c/private/ppb_flash_net_connector.h" 11 #include "ppapi/c/private/ppb_flash_net_connector.h"
12 #include "ppapi/shared_impl/resource.h"
11 #include "ppapi/thunk/ppb_flash_net_connector_api.h" 13 #include "ppapi/thunk/ppb_flash_net_connector_api.h"
12 #include "webkit/plugins/ppapi/callbacks.h" 14 #include "webkit/plugins/ppapi/callbacks.h"
13 #include "webkit/plugins/ppapi/resource.h"
14 15
15 namespace webkit { 16 namespace webkit {
16 namespace ppapi { 17 namespace ppapi {
17 18
18 class PPB_Flash_NetConnector_Impl 19 class PPB_Flash_NetConnector_Impl
19 : public Resource, 20 : public ::ppapi::Resource,
20 public ::ppapi::thunk::PPB_Flash_NetConnector_API { 21 public ::ppapi::thunk::PPB_Flash_NetConnector_API {
21 public: 22 public:
22 explicit PPB_Flash_NetConnector_Impl(PluginInstance* instance); 23 explicit PPB_Flash_NetConnector_Impl(PP_Instance instance);
23 virtual ~PPB_Flash_NetConnector_Impl(); 24 virtual ~PPB_Flash_NetConnector_Impl();
24 25
25 // Resource override. 26 // Resource override.
26 virtual ::ppapi::thunk::PPB_Flash_NetConnector_API* 27 virtual ::ppapi::thunk::PPB_Flash_NetConnector_API*
27 AsPPB_Flash_NetConnector_API() OVERRIDE; 28 AsPPB_Flash_NetConnector_API() OVERRIDE;
28 29
29 // PPB_Flash_NetConnector implementation. 30 // PPB_Flash_NetConnector implementation.
30 virtual int32_t ConnectTcp(const char* host, 31 virtual int32_t ConnectTcp(const char* host,
31 uint16_t port, 32 uint16_t port,
32 PP_FileHandle* socket_out, 33 PP_FileHandle* socket_out,
(...skipping 21 matching lines...) Expand all
54 PP_Flash_NetAddress* local_addr_out_; 55 PP_Flash_NetAddress* local_addr_out_;
55 PP_Flash_NetAddress* remote_addr_out_; 56 PP_Flash_NetAddress* remote_addr_out_;
56 57
57 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_NetConnector_Impl); 58 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_NetConnector_Impl);
58 }; 59 };
59 60
60 } // namespace ppapi 61 } // namespace ppapi
61 } // namespace webkit 62 } // namespace webkit
62 63
63 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_NET_CONNECTOR_IMPL_H_ 64 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_NET_CONNECTOR_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_flash_menu_impl.cc ('k') | webkit/plugins/ppapi/ppb_flash_net_connector_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698