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

Unified Diff: chrome/browser/printing/print_view_manager.h

Issue 11345008: Remove content::NotificationObserver dependency from most Prefs code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head for commit Created 8 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
Index: chrome/browser/printing/print_view_manager.h
diff --git a/chrome/browser/printing/print_view_manager.h b/chrome/browser/printing/print_view_manager.h
index e23eaab7ff951ef148c0089b1198ac604bf1cf01..d83c1a325e4ba9b7bc4fb3458a1aba467f4060ca 100644
--- a/chrome/browser/printing/print_view_manager.h
+++ b/chrome/browser/printing/print_view_manager.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_
#include "base/memory/ref_counted.h"
+#include "base/prefs/public/pref_observer.h"
#include "base/string16.h"
#include "chrome/browser/api/prefs/pref_member.h"
#include "content/public/browser/notification_observer.h"
@@ -30,6 +31,7 @@ class PrintViewManagerObserver;
// Manages the print commands for a WebContents.
class PrintViewManager : public content::NotificationObserver,
+ public PrefObserver,
public PrintedPagesSource,
public content::WebContentsObserver,
public content::WebContentsUserData<PrintViewManager> {
@@ -77,6 +79,10 @@ class PrintViewManager : public content::NotificationObserver,
// must be NULL if |observer| is non-NULL.
void set_observer(PrintViewManagerObserver* observer);
+ // PrefObserver implementation.
+ virtual void OnPreferenceChanged(PrefServiceBase* service,
+ const std::string& pref_name) OVERRIDE;
+
// PrintedPagesSource implementation.
virtual string16 RenderSourceName() OVERRIDE;
« no previous file with comments | « chrome/browser/printing/cloud_print/cloud_print_proxy_service.cc ('k') | chrome/browser/printing/print_view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698