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

Side by Side Diff: ppapi/proxy/ppb_broker_proxy.h

Issue 10696157: Add support for threadsafe completion callback factory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 PPAPI_PROXY_PPB_BROKER_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_BROKER_PROXY_H_
6 #define PPAPI_PROXY_PPB_BROKER_PROXY_H_ 6 #define PPAPI_PROXY_PPB_BROKER_PROXY_H_
7 7
8 #include "base/sync_socket.h" 8 #include "base/sync_socket.h"
9 #include "ipc/ipc_platform_file.h" 9 #include "ipc/ipc_platform_file.h"
10 #include "ppapi/c/pp_instance.h" 10 #include "ppapi/c/pp_instance.h"
11 #include "ppapi/proxy/interface_proxy.h" 11 #include "ppapi/proxy/interface_proxy.h"
12 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" 12 #include "ppapi/proxy/proxy_completion_callback_factory.h"
13 #include "ppapi/utility/completion_callback_factory.h" 13 #include "ppapi/utility/completion_callback_factory.h"
14 14
15 namespace ppapi { 15 namespace ppapi {
16 16
17 class HostResource; 17 class HostResource;
18 18
19 namespace proxy { 19 namespace proxy {
20 20
21 class PPB_Broker_Proxy : public InterfaceProxy { 21 class PPB_Broker_Proxy : public InterfaceProxy {
22 public: 22 public:
(...skipping 11 matching lines...) Expand all
34 // Message handlers. 34 // Message handlers.
35 void OnMsgCreate(PP_Instance instance, ppapi::HostResource* result_resource); 35 void OnMsgCreate(PP_Instance instance, ppapi::HostResource* result_resource);
36 void OnMsgConnect(const ppapi::HostResource& broker); 36 void OnMsgConnect(const ppapi::HostResource& broker);
37 void OnMsgConnectComplete(const ppapi::HostResource& broker, 37 void OnMsgConnectComplete(const ppapi::HostResource& broker,
38 IPC::PlatformFileForTransit foreign_socket_handle, 38 IPC::PlatformFileForTransit foreign_socket_handle,
39 int32_t result); 39 int32_t result);
40 40
41 void ConnectCompleteInHost(int32_t result, 41 void ConnectCompleteInHost(int32_t result,
42 const ppapi::HostResource& host_resource); 42 const ppapi::HostResource& host_resource);
43 43
44 pp::CompletionCallbackFactory<PPB_Broker_Proxy, 44 ProxyCompletionCallbackFactory<PPB_Broker_Proxy> callback_factory_;
45 ProxyNonThreadSafeRefCount> callback_factory_;
46 }; 45 };
47 46
48 } // namespace proxy 47 } // namespace proxy
49 } // namespace ppapi 48 } // namespace ppapi
50 49
51 #endif // PPAPI_PROXY_PPB_BROKER_PROXY_H_ 50 #endif // PPAPI_PROXY_PPB_BROKER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698