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

Side by Side Diff: chrome/browser/plugin_data_remover_helper.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/plugin_data_remover_helper.h" 5 #include "chrome/browser/plugin_data_remover_helper.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "chrome/browser/plugin_data_remover.h" 10 #include "chrome/browser/plugin_data_remover.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 PluginDataRemoverHelper::~PluginDataRemoverHelper() { 67 PluginDataRemoverHelper::~PluginDataRemoverHelper() {
68 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 68 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
69 if (internal_) 69 if (internal_)
70 internal_->Invalidate(); 70 internal_->Invalidate();
71 } 71 }
72 72
73 void PluginDataRemoverHelper::Init(const char* pref_name, 73 void PluginDataRemoverHelper::Init(const char* pref_name,
74 PrefService* prefs, 74 PrefService* prefs,
75 NotificationObserver* observer) { 75 NotificationObserver* observer) {
76 pref_.Init(pref_name, prefs, observer); 76 pref_.Init(pref_name, prefs, observer);
77 registrar_.Add(this, NotificationType::PLUGIN_ENABLE_STATUS_CHANGED, 77 registrar_.Add(this, content::NOTIFICATION_PLUGIN_ENABLE_STATUS_CHANGED,
78 NotificationService::AllSources()); 78 NotificationService::AllSources());
79 internal_ = make_scoped_refptr(new Internal(pref_name, prefs)); 79 internal_ = make_scoped_refptr(new Internal(pref_name, prefs));
80 internal_->StartUpdate(); 80 internal_->StartUpdate();
81 } 81 }
82 82
83 void PluginDataRemoverHelper::Observe(NotificationType type, 83 void PluginDataRemoverHelper::Observe(int type,
84 const NotificationSource& source, 84 const NotificationSource& source,
85 const NotificationDetails& details) { 85 const NotificationDetails& details) {
86 if (type.value == NotificationType::PLUGIN_ENABLE_STATUS_CHANGED) { 86 if (type == content::NOTIFICATION_PLUGIN_ENABLE_STATUS_CHANGED) {
87 internal_->StartUpdate(); 87 internal_->StartUpdate();
88 } else { 88 } else {
89 NOTREACHED(); 89 NOTREACHED();
90 } 90 }
91 } 91 }
OLDNEW
« no previous file with comments | « chrome/browser/plugin_data_remover_helper.h ('k') | chrome/browser/plugin_exceptions_table_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698