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

Side by Side Diff: chrome/browser/ui/prefs/prefs_tab_helper.h

Issue 24648002: Rename CallbackRegistry to CallbackList (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Doc fix Created 7 years, 2 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_UI_PREFS_PREFS_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_UI_PREFS_PREFS_TAB_HELPER_H_
6 #define CHROME_BROWSER_UI_PREFS_PREFS_TAB_HELPER_H_ 6 #define CHROME_BROWSER_UI_PREFS_PREFS_TAB_HELPER_H_
7 7
8 #include "base/callback_registry.h" 8 #include "base/callback_list.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "base/prefs/pref_change_registrar.h" 11 #include "base/prefs/pref_change_registrar.h"
12 #include "content/public/browser/notification_observer.h" 12 #include "content/public/browser/notification_observer.h"
13 #include "content/public/browser/notification_registrar.h" 13 #include "content/public/browser/notification_registrar.h"
14 #include "content/public/browser/web_contents_user_data.h" 14 #include "content/public/browser/web_contents_user_data.h"
15 15
16 class OverlayUserPrefStore; 16 class OverlayUserPrefStore;
17 class PrefService; 17 class PrefService;
18 class Profile; 18 class Profile;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // Update the WebContents's RendererPreferences. 51 // Update the WebContents's RendererPreferences.
52 void UpdateRendererPreferences(); 52 void UpdateRendererPreferences();
53 53
54 Profile* GetProfile(); 54 Profile* GetProfile();
55 void OnWebPrefChanged(const std::string& pref_name); 55 void OnWebPrefChanged(const std::string& pref_name);
56 56
57 content::WebContents* web_contents_; 57 content::WebContents* web_contents_;
58 content::NotificationRegistrar registrar_; 58 content::NotificationRegistrar registrar_;
59 PrefChangeRegistrar pref_change_registrar_; 59 PrefChangeRegistrar pref_change_registrar_;
60 base::WeakPtrFactory<PrefsTabHelper> weak_ptr_factory_; 60 base::WeakPtrFactory<PrefsTabHelper> weak_ptr_factory_;
61 scoped_ptr<base::CallbackRegistry<void(void)>::Subscription> 61 scoped_ptr<base::CallbackList<void(void)>::Subscription>
62 style_sheet_subscription_; 62 style_sheet_subscription_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(PrefsTabHelper); 64 DISALLOW_COPY_AND_ASSIGN(PrefsTabHelper);
65 }; 65 };
66 66
67 #endif // CHROME_BROWSER_UI_PREFS_PREFS_TAB_HELPER_H_ 67 #endif // CHROME_BROWSER_UI_PREFS_PREFS_TAB_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/settings/cros_settings.cc ('k') | chrome/browser/user_style_sheet_watcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698