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

Unified Diff: chrome/browser/ppapi_plugin_process_host.h

Issue 3915002: Out of process Pepper (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 | « chrome/app/dummy_main_functions.cc ('k') | chrome/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ppapi_plugin_process_host.h
===================================================================
--- chrome/browser/ppapi_plugin_process_host.h (revision 0)
+++ chrome/browser/ppapi_plugin_process_host.h (revision 0)
@@ -0,0 +1,57 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
+#define CHROME_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
+#pragma once
+
+#include "base/basictypes.h"
+#include "base/file_path.h"
+#include "chrome/browser/browser_child_process_host.h"
+
+class ResourceMessageFilter;
+
+namespace IPC {
+class ChannelHandle;
+class Message;
+}
+
+class PpapiPluginProcessHost : public BrowserChildProcessHost {
+ public:
+ explicit PpapiPluginProcessHost(ResourceMessageFilter* filter);
+ virtual ~PpapiPluginProcessHost();
+
+ void Init(const FilePath& path, IPC::Message* reply_msg);
+
+ private:
+ virtual bool CanShutdown() { return true; }
+ virtual void OnProcessLaunched();
+ virtual URLRequestContext* GetRequestContext(
+ uint32 request_id,
+ const ViewHostMsg_Resource_Request& request_data);
+
+ virtual void OnMessageReceived(const IPC::Message& msg);
+ virtual void OnChannelConnected(int32 peer_pid);
+ virtual void OnChannelError();
+
+ // IPC message handlers.
+ void OnPluginLoaded(const IPC::ChannelHandle& handle);
+
+ // Sends the reply_msg_ to the renderer with the given channel info.
+ void ReplyToRenderer(const IPC::ChannelHandle& handle);
+
+ ResourceMessageFilter* filter_;
+
+ // Path to the plugin library.
+ FilePath plugin_path_;
+
+ // When we're waiting for initialization of the plugin, this contains the
+ // reply message for the renderer to tell it that it can continue.
+ scoped_ptr<IPC::Message> reply_msg_;
+
+ DISALLOW_COPY_AND_ASSIGN(PpapiPluginProcessHost);
+};
+
+#endif // CHROME_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
+
Property changes on: chrome/browser/ppapi_plugin_process_host.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/app/dummy_main_functions.cc ('k') | chrome/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698