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

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

Issue 6981001: Make the Pepper proxy support in-process font rendering. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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
« no previous file with comments | « ppapi/proxy/dispatcher.cc ('k') | ppapi/proxy/host_dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 28 matching lines...) Expand all
39 // 39 //
40 // You must call InitHostWithChannel after the constructor. 40 // You must call InitHostWithChannel after the constructor.
41 HostDispatcher(base::ProcessHandle host_process_handle, 41 HostDispatcher(base::ProcessHandle host_process_handle,
42 PP_Module module, 42 PP_Module module,
43 GetInterfaceFunc local_get_interface); 43 GetInterfaceFunc local_get_interface);
44 ~HostDispatcher(); 44 ~HostDispatcher();
45 45
46 // You must call this function before anything else. Returns true on success. 46 // You must call this function before anything else. Returns true on success.
47 // The delegate pointer must outlive this class, ownership is not 47 // The delegate pointer must outlive this class, ownership is not
48 // transferred. 48 // transferred.
49 virtual bool InitHostWithChannel(ProxyChannel::Delegate* delegate, 49 virtual bool InitHostWithChannel(Delegate* delegate,
50 const IPC::ChannelHandle& channel_handle, 50 const IPC::ChannelHandle& channel_handle,
51 bool is_client); 51 bool is_client);
52 52
53 // The host side maintains a mapping from PP_Instance to Dispatcher so 53 // The host side maintains a mapping from PP_Instance to Dispatcher so
54 // that we can send the messages to the right channel. 54 // that we can send the messages to the right channel.
55 static HostDispatcher* GetForInstance(PP_Instance instance); 55 static HostDispatcher* GetForInstance(PP_Instance instance);
56 static void SetForInstance(PP_Instance instance, 56 static void SetForInstance(PP_Instance instance,
57 HostDispatcher* dispatcher); 57 HostDispatcher* dispatcher);
58 static void RemoveForInstance(PP_Instance instance); 58 static void RemoveForInstance(PP_Instance instance);
59 59
60 // Returns the host's notion of our PP_Module. This will be different than 60 // Returns the host's notion of our PP_Module. This will be different than
61 // the plugin's notion of its PP_Module because the plugin process may be 61 // the plugin's notion of its PP_Module because the plugin process may be
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 private: 149 private:
150 HostDispatcher* dispatcher_; 150 HostDispatcher* dispatcher_;
151 151
152 DISALLOW_COPY_AND_ASSIGN(ScopedModuleReference); 152 DISALLOW_COPY_AND_ASSIGN(ScopedModuleReference);
153 }; 153 };
154 154
155 } // namespace proxy 155 } // namespace proxy
156 } // namespace pp 156 } // namespace pp
157 157
158 #endif // PPAPI_PROXY_HOST_DISPATCHER_H_ 158 #endif // PPAPI_PROXY_HOST_DISPATCHER_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/dispatcher.cc ('k') | ppapi/proxy/host_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698