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

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

Issue 627043002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[a-s]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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_list.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"
(...skipping 27 matching lines...) Expand all
38 // Update the RenderView's WebPreferences. Exposed as protected for testing. 38 // Update the RenderView's WebPreferences. Exposed as protected for testing.
39 virtual void UpdateWebPreferences(); 39 virtual void UpdateWebPreferences();
40 40
41 private: 41 private:
42 explicit PrefsTabHelper(content::WebContents* contents); 42 explicit PrefsTabHelper(content::WebContents* contents);
43 friend class content::WebContentsUserData<PrefsTabHelper>; 43 friend class content::WebContentsUserData<PrefsTabHelper>;
44 44
45 // content::NotificationObserver overrides: 45 // content::NotificationObserver overrides:
46 virtual void Observe(int type, 46 virtual void Observe(int type,
47 const content::NotificationSource& source, 47 const content::NotificationSource& source,
48 const content::NotificationDetails& details) OVERRIDE; 48 const content::NotificationDetails& details) override;
49 49
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 54
55 void OnFontFamilyPrefChanged(const std::string& pref_name); 55 void OnFontFamilyPrefChanged(const std::string& pref_name);
56 void OnWebPrefChanged(const std::string& pref_name); 56 void OnWebPrefChanged(const std::string& pref_name);
57 57
58 content::WebContents* web_contents_; 58 content::WebContents* web_contents_;
59 content::NotificationRegistrar registrar_; 59 content::NotificationRegistrar registrar_;
60 PrefChangeRegistrar pref_change_registrar_; 60 PrefChangeRegistrar pref_change_registrar_;
61 scoped_ptr<base::CallbackList<void(void)>::Subscription> 61 scoped_ptr<base::CallbackList<void(void)>::Subscription>
62 style_sheet_subscription_; 62 style_sheet_subscription_;
63 base::WeakPtrFactory<PrefsTabHelper> weak_ptr_factory_; 63 base::WeakPtrFactory<PrefsTabHelper> weak_ptr_factory_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(PrefsTabHelper); 65 DISALLOW_COPY_AND_ASSIGN(PrefsTabHelper);
66 }; 66 };
67 67
68 #endif // CHROME_BROWSER_UI_PREFS_PREFS_TAB_HELPER_H_ 68 #endif // CHROME_BROWSER_UI_PREFS_PREFS_TAB_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/pdf/pdf_unsupported_feature.cc ('k') | chrome/browser/ui/prefs/prefs_tab_helper_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698