diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-01 00:39:12 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-01 00:39:12 +0000 |
commit | bd5d6cfd0e09e2123b948083bdaa39b2637b5143 (patch) | |
tree | 33cf977ea21078b69d7600ec4a12412fa23dc342 /content/browser/plugin_process_host.cc | |
parent | 8d85a4b93067def07388e577b5c9e95de27f06b6 (diff) | |
download | chromium_src-bd5d6cfd0e09e2123b948083bdaa39b2637b5143.zip chromium_src-bd5d6cfd0e09e2123b948083bdaa39b2637b5143.tar.gz chromium_src-bd5d6cfd0e09e2123b948083bdaa39b2637b5143.tar.bz2 |
Move the ProcessType enum out to its own file. This is in preparation for getting rid of ChildProcessInfo.
BUG=98716
Review URL: http://codereview.chromium.org/8760011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112353 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/plugin_process_host.cc')
-rw-r--r-- | content/browser/plugin_process_host.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/content/browser/plugin_process_host.cc b/content/browser/plugin_process_host.cc index e31d161..afba6ab 100644 --- a/content/browser/plugin_process_host.cc +++ b/content/browser/plugin_process_host.cc @@ -28,6 +28,7 @@ #include "content/public/browser/content_browser_client.h" #include "content/public/browser/notification_types.h" #include "content/public/common/content_switches.h" +#include "content/public/common/process_type.h" #include "ipc/ipc_switches.h" #include "ui/base/ui_base_switches.h" #include "ui/gfx/gl/gl_switches.h" @@ -111,7 +112,7 @@ void PluginProcessHost::OnMapNativeViewId(gfx::NativeViewId id, #endif // defined(TOOLKIT_USES_GTK) PluginProcessHost::PluginProcessHost() - : BrowserChildProcessHost(PLUGIN_PROCESS) + : BrowserChildProcessHost(content::PROCESS_TYPE_PLUGIN) #if defined(OS_MACOSX) , plugin_cursor_visible_(true) #endif @@ -343,8 +344,7 @@ void PluginProcessHost::CancelRequests() { // static void PluginProcessHost::CancelPendingRequestsForResourceContext( const content::ResourceContext* context) { - for (BrowserChildProcessHost::Iterator host_it( - ChildProcessInfo::PLUGIN_PROCESS); + for (BrowserChildProcessHost::Iterator host_it(content::PROCESS_TYPE_PLUGIN); !host_it.Done(); ++host_it) { PluginProcessHost* host = static_cast<PluginProcessHost*>(*host_it); for (size_t i = 0; i < host->pending_requests_.size(); ++i) { |