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

Unified Diff: content/browser/plugin_service.cc

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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.h ('k') | content/browser/renderer_host/browser_render_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 91968)
+++ content/browser/plugin_service.cc (working copy)
@@ -20,9 +20,9 @@
#include "content/browser/renderer_host/render_process_host.h"
#include "content/browser/renderer_host/render_view_host.h"
#include "content/browser/resource_context.h"
+#include "content/common/content_notification_types.h"
#include "content/common/content_switches.h"
#include "content/common/notification_service.h"
-#include "content/common/notification_type.h"
#include "content/common/pepper_plugin_registry.h"
#include "content/common/plugin_messages.h"
#include "content/common/view_messages.h"
@@ -102,7 +102,7 @@
#elif defined(OS_MACOSX)
// We need to know when the browser comes forward so we can bring modal plugin
// windows forward too.
- registrar_.Add(this, NotificationType::APP_ACTIVATED,
+ registrar_.Add(this, content::NOTIFICATION_APP_ACTIVATED,
NotificationService::AllSources());
#elif defined(OS_POSIX)
// The FilePathWatcher produces too many false positives on MacOS (access time
@@ -134,10 +134,10 @@
file_watchers_.push_back(watcher);
}
#endif
- registrar_.Add(this, NotificationType::PLUGIN_ENABLE_STATUS_CHANGED,
+ registrar_.Add(this, content::NOTIFICATION_PLUGIN_ENABLE_STATUS_CHANGED,
NotificationService::AllSources());
registrar_.Add(this,
- NotificationType::RENDERER_PROCESS_CLOSED,
+ content::NOTIFICATION_RENDERER_PROCESS_CLOSED,
NotificationService::AllSources());
}
@@ -390,24 +390,24 @@
#endif // defined(OS_WIN)
}
-void PluginService::Observe(NotificationType type,
+void PluginService::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- switch (type.value) {
+ switch (type) {
#if defined(OS_MACOSX)
- case NotificationType::APP_ACTIVATED: {
+ case content::NOTIFICATION_APP_ACTIVATED: {
BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
NewRunnableFunction(&NotifyPluginsOfActivation));
break;
}
#endif
- case NotificationType::PLUGIN_ENABLE_STATUS_CHANGED: {
+ case content::NOTIFICATION_PLUGIN_ENABLE_STATUS_CHANGED: {
webkit::npapi::PluginList::Singleton()->RefreshPlugins();
PurgePluginListCache(false);
break;
}
- case NotificationType::RENDERER_PROCESS_CLOSED: {
+ case content::NOTIFICATION_RENDERER_PROCESS_CLOSED: {
int render_process_id = Source<RenderProcessHost>(source).ptr()->id();
base::AutoLock auto_lock(overridden_plugins_lock_);
« no previous file with comments | « content/browser/plugin_service.h ('k') | content/browser/renderer_host/browser_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698