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

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

Issue 10069035: Add a way to implement GetInterface in the broker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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_HOST_DISPATCHER_H_ 5 #ifndef PPAPI_PROXY_HOST_DISPATCHER_H_
6 #define PPAPI_PROXY_HOST_DISPATCHER_H_ 6 #define PPAPI_PROXY_HOST_DISPATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 12 matching lines...) Expand all
23 23
24 namespace proxy { 24 namespace proxy {
25 25
26 class PPAPI_PROXY_EXPORT HostDispatcher : public Dispatcher { 26 class PPAPI_PROXY_EXPORT HostDispatcher : public Dispatcher {
27 public: 27 public:
28 // Constructor for the renderer side. 28 // Constructor for the renderer side.
29 // 29 //
30 // You must call InitHostWithChannel after the constructor. 30 // You must call InitHostWithChannel after the constructor.
31 HostDispatcher(base::ProcessHandle host_process_handle, 31 HostDispatcher(base::ProcessHandle host_process_handle,
32 PP_Module module, 32 PP_Module module,
33 GetInterfaceFunc local_get_interface); 33 PP_GetInterface_Func local_get_interface);
34 ~HostDispatcher(); 34 ~HostDispatcher();
35 35
36 // You must call this function before anything else. Returns true on success. 36 // You must call this function before anything else. Returns true on success.
37 // The delegate pointer must outlive this class, ownership is not 37 // The delegate pointer must outlive this class, ownership is not
38 // transferred. 38 // transferred.
39 virtual bool InitHostWithChannel(Delegate* delegate, 39 virtual bool InitHostWithChannel(Delegate* delegate,
40 const IPC::ChannelHandle& channel_handle, 40 const IPC::ChannelHandle& channel_handle,
41 bool is_client, 41 bool is_client,
42 const Preferences& preferences); 42 const Preferences& preferences);
43 43
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 private: 124 private:
125 HostDispatcher* dispatcher_; 125 HostDispatcher* dispatcher_;
126 126
127 DISALLOW_COPY_AND_ASSIGN(ScopedModuleReference); 127 DISALLOW_COPY_AND_ASSIGN(ScopedModuleReference);
128 }; 128 };
129 129
130 } // namespace proxy 130 } // namespace proxy
131 } // namespace ppapi 131 } // namespace ppapi
132 132
133 #endif // PPAPI_PROXY_HOST_DISPATCHER_H_ 133 #endif // PPAPI_PROXY_HOST_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698