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

Unified Diff: content/browser/plugin_loader_posix.h

Issue 9317074: Create an API around UtilityProcessHost and use that from chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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
Index: content/browser/plugin_loader_posix.h
===================================================================
--- content/browser/plugin_loader_posix.h (revision 120256)
+++ content/browser/plugin_loader_posix.h (working copy)
@@ -8,20 +8,22 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
#include "base/time.h"
#include "content/browser/plugin_service_impl.h"
-#include "content/browser/utility_process_host.h"
+#include "content/public/browser/utility_process_host_client.h"
#include "ipc/ipc_message.h"
#include "webkit/plugins/webplugininfo.h"
-class FilePath;
-class UtilityProcessHost;
-
namespace base {
class MessageLoopProxy;
}
+namespace content {
+class UtilityProcessHost;
+}
+
// This class is responsible for managing the out-of-process plugin loading on
// POSIX systems. It primarily lives on the IO thread, but has a brief stay on
// the FILE thread to iterate over plugin directories when it is first
@@ -43,8 +45,9 @@
// 5. This algorithm continues until the canonical list has been walked to the
// end, after which the list of loaded plugins is set on the PluginList and
// the completion callback is run.
-class CONTENT_EXPORT PluginLoaderPosix : public UtilityProcessHost::Client,
- IPC::Message::Sender {
+class CONTENT_EXPORT PluginLoaderPosix
+ : public NON_EXPORTED_BASE(content::UtilityProcessHostClient),
+ public IPC::Message::Sender {
public:
PluginLoaderPosix();
@@ -53,7 +56,7 @@
scoped_refptr<base::MessageLoopProxy> target_loop,
const content::PluginService::GetPluginsCallback& callback);
- // UtilityProcessHost::Client:
+ // UtilityProcessHostClient:
virtual void OnProcessCrashed(int exit_code) OVERRIDE;
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
@@ -92,7 +95,7 @@
bool MaybeRunPendingCallbacks();
// The process host for which this is a client.
- base::WeakPtr<UtilityProcessHost> process_host_;
+ base::WeakPtr<content::UtilityProcessHost> process_host_;
// A list of paths to plugins which will be loaded by the utility process, in
// the order specified by this vector.
« no previous file with comments | « content/browser/indexed_db/idbbindingutilities_browsertest.cc ('k') | content/browser/plugin_loader_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698