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

Unified Diff: content/browser/ppapi_plugin_process_host.h

Issue 7044012: Support getting the font list in Pepper. This currently only works out of (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/plugin_service.cc ('k') | content/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/ppapi_plugin_process_host.h
===================================================================
--- content/browser/ppapi_plugin_process_host.h (revision 85766)
+++ content/browser/ppapi_plugin_process_host.h (working copy)
@@ -10,10 +10,20 @@
#include "base/basictypes.h"
#include "base/file_path.h"
+#include "base/memory/ref_counted.h"
#include "content/browser/browser_child_process_host.h"
+#include "content/browser/renderer_host/pepper_message_filter.h"
struct PepperPluginInfo;
+namespace content {
+class ResourceContext;
+}
+
+namespace net {
+class HostResolver;
+}
+
class PpapiPluginProcessHost : public BrowserChildProcessHost {
public:
class Client {
@@ -28,10 +38,13 @@
// IPC::ChannelHandle()
virtual void OnChannelOpened(base::ProcessHandle plugin_process_handle,
const IPC::ChannelHandle& channel_handle) = 0;
+
+ // Returns the resource context for the renderer requesting the channel.
+ virtual const content::ResourceContext* GetResourceContext() = 0;
};
// You must call Init before doing anything else.
- PpapiPluginProcessHost();
+ PpapiPluginProcessHost(net::HostResolver* host_resolver);
virtual ~PpapiPluginProcessHost();
// Actually launches the process with the given plugin info. Returns true
@@ -47,7 +60,6 @@
// The client pointer must remain valid until its callback is issued.
private:
-
void RequestPluginChannel(Client* client);
virtual bool CanShutdown();
@@ -62,6 +74,9 @@
// IPC message handlers.
void OnRendererPluginChannelCreated(const IPC::ChannelHandle& handle);
+ // Handles most requests from the plugin.
+ scoped_refptr<PepperMessageFilter> filter_;
+
// Channel requests that we are waiting to send to the plugin process once
// the channel is opened.
std::vector<Client*> pending_requests_;
« no previous file with comments | « content/browser/plugin_service.cc ('k') | content/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698