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

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

Issue 7629017: Add a unified resource tracker shared between the proxy and the impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments 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_TRANSPORT_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_TRANSPORT_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_TRANSPORT_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_TRANSPORT_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 11 matching lines...) Expand all
22 class PPB_Transport_Impl : public Resource, 22 class PPB_Transport_Impl : public Resource,
23 public ::ppapi::thunk::PPB_Transport_API, 23 public ::ppapi::thunk::PPB_Transport_API,
24 public webkit_glue::P2PTransport::EventHandler { 24 public webkit_glue::P2PTransport::EventHandler {
25 public: 25 public:
26 virtual ~PPB_Transport_Impl(); 26 virtual ~PPB_Transport_Impl();
27 27
28 static PP_Resource Create(PluginInstance* instance, 28 static PP_Resource Create(PluginInstance* instance,
29 const char* name, 29 const char* name,
30 const char* proto); 30 const char* proto);
31 31
32 // ResourceObjectBase override. 32 // Resource override.
33 virtual ::ppapi::thunk::PPB_Transport_API* AsPPB_Transport_API() OVERRIDE; 33 virtual ::ppapi::thunk::PPB_Transport_API* AsPPB_Transport_API() OVERRIDE;
34 34
35 // PPB_Transport_API implementation. 35 // PPB_Transport_API implementation.
36 virtual PP_Bool IsWritable() OVERRIDE; 36 virtual PP_Bool IsWritable() OVERRIDE;
37 virtual int32_t Connect(PP_CompletionCallback callback) OVERRIDE; 37 virtual int32_t Connect(PP_CompletionCallback callback) OVERRIDE;
38 virtual int32_t GetNextAddress(PP_Var* address, 38 virtual int32_t GetNextAddress(PP_Var* address,
39 PP_CompletionCallback callback) OVERRIDE; 39 PP_CompletionCallback callback) OVERRIDE;
40 virtual int32_t ReceiveRemoteAddress(PP_Var address) OVERRIDE; 40 virtual int32_t ReceiveRemoteAddress(PP_Var address) OVERRIDE;
41 virtual int32_t Recv(void* data, uint32_t len, 41 virtual int32_t Recv(void* data, uint32_t len,
42 PP_CompletionCallback callback) OVERRIDE; 42 PP_CompletionCallback callback) OVERRIDE;
(...skipping 30 matching lines...) Expand all
73 net::CompletionCallbackImpl<PPB_Transport_Impl> channel_write_callback_; 73 net::CompletionCallbackImpl<PPB_Transport_Impl> channel_write_callback_;
74 net::CompletionCallbackImpl<PPB_Transport_Impl> channel_read_callback_; 74 net::CompletionCallbackImpl<PPB_Transport_Impl> channel_read_callback_;
75 75
76 DISALLOW_COPY_AND_ASSIGN(PPB_Transport_Impl); 76 DISALLOW_COPY_AND_ASSIGN(PPB_Transport_Impl);
77 }; 77 };
78 78
79 } // namespace ppapi 79 } // namespace ppapi
80 } // namespace webkit 80 } // namespace webkit
81 81
82 #endif // WEBKIT_PLUGINS_PPAPI_PPB_TRANSPORT_IMPL_H_ 82 #endif // WEBKIT_PLUGINS_PPAPI_PPB_TRANSPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698