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

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

Issue 22859034: WIP CallbackList in action (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/ui/prefs/prefs_tab_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/prefs/pref_change_registrar.h" 10 #include "base/prefs/pref_change_registrar.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // Update the WebContents's RendererPreferences. 50 // Update the WebContents's RendererPreferences.
51 void UpdateRendererPreferences(); 51 void UpdateRendererPreferences();
52 52
53 Profile* GetProfile(); 53 Profile* GetProfile();
54 void OnWebPrefChanged(const std::string& pref_name); 54 void OnWebPrefChanged(const std::string& pref_name);
55 55
56 content::WebContents* web_contents_; 56 content::WebContents* web_contents_;
57 content::NotificationRegistrar registrar_; 57 content::NotificationRegistrar registrar_;
58 PrefChangeRegistrar pref_change_registrar_; 58 PrefChangeRegistrar pref_change_registrar_;
59 base::WeakPtrFactory<PrefsTabHelper> weak_ptr_factory_; 59 base::WeakPtrFactory<PrefsTabHelper> weak_ptr_factory_;
60 base::Closure remove_callback_;
60 61
61 DISALLOW_COPY_AND_ASSIGN(PrefsTabHelper); 62 DISALLOW_COPY_AND_ASSIGN(PrefsTabHelper);
62 }; 63 };
63 64
64 #endif // CHROME_BROWSER_UI_PREFS_PREFS_TAB_HELPER_H_ 65 #endif // CHROME_BROWSER_UI_PREFS_PREFS_TAB_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/prefs/prefs_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698