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

Unified Diff: content/browser/plugin_service.cc

Issue 8760011: Move the ProcessType enum out to its own file. This is in preparation for getting rid of ChildPro... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 9 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 | « content/browser/plugin_process_host.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/plugin_service.cc
===================================================================
--- content/browser/plugin_service.cc (revision 112315)
+++ content/browser/plugin_service.cc (working copy)
@@ -32,6 +32,7 @@
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_types.h"
#include "content/public/common/content_switches.h"
+#include "content/public/common/process_type.h"
#include "webkit/plugins/npapi/plugin_constants_win.h"
#include "webkit/plugins/npapi/plugin_group.h"
#include "webkit/plugins/npapi/plugin_list.h"
@@ -80,7 +81,8 @@
static void NotifyPluginsOfActivation() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- for (BrowserChildProcessHost::Iterator iter(ChildProcessInfo::PLUGIN_PROCESS);
+ for (BrowserChildProcessHost::Iterator iter(
+ content::PROCESS_TYPE_PLUGIN);
!iter.Done(); ++iter) {
PluginProcessHost* plugin = static_cast<PluginProcessHost*>(*iter);
plugin->OnAppActivation();
@@ -221,7 +223,7 @@
const FilePath& plugin_path) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- for (BrowserChildProcessHost::Iterator iter(ChildProcessInfo::PLUGIN_PROCESS);
+ for (BrowserChildProcessHost::Iterator iter(content::PROCESS_TYPE_PLUGIN);
!iter.Done(); ++iter) {
PluginProcessHost* plugin = static_cast<PluginProcessHost*>(*iter);
if (plugin->info().path == plugin_path)
@@ -236,7 +238,7 @@
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
for (BrowserChildProcessHost::Iterator iter(
- ChildProcessInfo::PPAPI_PLUGIN_PROCESS);
+ content::PROCESS_TYPE_PPAPI_PLUGIN);
!iter.Done(); ++iter) {
PpapiPluginProcessHost* plugin =
static_cast<PpapiPluginProcessHost*>(*iter);
@@ -252,7 +254,7 @@
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
for (BrowserChildProcessHost::Iterator iter(
- ChildProcessInfo::PPAPI_BROKER_PROCESS);
+ content::PROCESS_TYPE_PPAPI_BROKER);
!iter.Done(); ++iter) {
PpapiPluginProcessHost* broker =
static_cast<PpapiPluginProcessHost*>(*iter);
« no previous file with comments | « content/browser/plugin_process_host.cc ('k') | content/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698