| OLD | NEW |
| 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/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" | |
| 13 #include "content/public/browser/notification_observer.h" | 12 #include "content/public/browser/notification_observer.h" |
| 14 #include "content/public/browser/notification_registrar.h" | 13 #include "content/public/browser/notification_registrar.h" |
| 15 #include "content/public/browser/web_contents_user_data.h" | 14 #include "content/public/browser/web_contents_user_data.h" |
| 16 | 15 |
| 16 #if !defined(OS_ANDROID) |
| 17 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" |
| 18 #endif |
| 19 |
| 17 class Profile; | 20 class Profile; |
| 18 | 21 |
| 19 namespace content { | 22 namespace content { |
| 20 class WebContents; | 23 class WebContents; |
| 21 } | 24 } |
| 22 | 25 |
| 23 namespace user_prefs { | 26 namespace user_prefs { |
| 24 class PrefRegistrySyncable; | 27 class PrefRegistrySyncable; |
| 25 } | 28 } |
| 26 | 29 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 53 void OnFontFamilyPrefChanged(const std::string& pref_name); | 56 void OnFontFamilyPrefChanged(const std::string& pref_name); |
| 54 void OnWebPrefChanged(const std::string& pref_name); | 57 void OnWebPrefChanged(const std::string& pref_name); |
| 55 | 58 |
| 56 void NotifyWebkitPreferencesChanged(const std::string& pref_name); | 59 void NotifyWebkitPreferencesChanged(const std::string& pref_name); |
| 57 | 60 |
| 58 content::WebContents* web_contents_; | 61 content::WebContents* web_contents_; |
| 59 Profile* profile_; | 62 Profile* profile_; |
| 60 content::NotificationRegistrar registrar_; | 63 content::NotificationRegistrar registrar_; |
| 61 std::unique_ptr<base::CallbackList<void(void)>::Subscription> | 64 std::unique_ptr<base::CallbackList<void(void)>::Subscription> |
| 62 style_sheet_subscription_; | 65 style_sheet_subscription_; |
| 66 #if !defined(OS_ANDROID) |
| 63 std::unique_ptr<ChromeZoomLevelPrefs::DefaultZoomLevelSubscription> | 67 std::unique_ptr<ChromeZoomLevelPrefs::DefaultZoomLevelSubscription> |
| 64 default_zoom_level_subscription_; | 68 default_zoom_level_subscription_; |
| 69 #endif // !defined(OS_ANDROID) |
| 65 base::WeakPtrFactory<PrefsTabHelper> weak_ptr_factory_; | 70 base::WeakPtrFactory<PrefsTabHelper> weak_ptr_factory_; |
| 66 | 71 |
| 67 DISALLOW_COPY_AND_ASSIGN(PrefsTabHelper); | 72 DISALLOW_COPY_AND_ASSIGN(PrefsTabHelper); |
| 68 }; | 73 }; |
| 69 | 74 |
| 70 #endif // CHROME_BROWSER_UI_PREFS_PREFS_TAB_HELPER_H_ | 75 #endif // CHROME_BROWSER_UI_PREFS_PREFS_TAB_HELPER_H_ |
| OLD | NEW |