| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/prefs/pref_change_registrar.h" | 10 #include "chrome/browser/prefs/pref_change_registrar.h" |
| 11 #include "content/public/browser/notification_observer.h" | 11 #include "content/public/browser/notification_observer.h" |
| 12 #include "content/public/browser/notification_registrar.h" | 12 #include "content/public/browser/notification_registrar.h" |
| 13 | 13 |
| 14 class OverlayUserPrefStore; | 14 class OverlayUserPrefStore; |
| 15 class PrefService; | 15 class PrefService; |
| 16 class Profile; | 16 class Profile; |
| 17 struct WebPreferences; | |
| 18 | 17 |
| 19 namespace content { | 18 namespace content { |
| 20 class WebContents; | 19 class WebContents; |
| 21 } | 20 } |
| 22 | 21 |
| 23 // Per-tab class to handle user preferences. | 22 // Per-tab class to handle user preferences. |
| 24 class PrefsTabHelper : public content::NotificationObserver { | 23 class PrefsTabHelper : public content::NotificationObserver { |
| 25 public: | 24 public: |
| 26 explicit PrefsTabHelper(content::WebContents* contents); | 25 explicit PrefsTabHelper(content::WebContents* contents); |
| 27 virtual ~PrefsTabHelper(); | 26 virtual ~PrefsTabHelper(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 45 Profile* GetProfile(); | 44 Profile* GetProfile(); |
| 46 | 45 |
| 47 content::WebContents* web_contents_; | 46 content::WebContents* web_contents_; |
| 48 content::NotificationRegistrar registrar_; | 47 content::NotificationRegistrar registrar_; |
| 49 PrefChangeRegistrar pref_change_registrar_; | 48 PrefChangeRegistrar pref_change_registrar_; |
| 50 | 49 |
| 51 DISALLOW_COPY_AND_ASSIGN(PrefsTabHelper); | 50 DISALLOW_COPY_AND_ASSIGN(PrefsTabHelper); |
| 52 }; | 51 }; |
| 53 | 52 |
| 54 #endif // CHROME_BROWSER_UI_PREFS_PREFS_TAB_HELPER_H_ | 53 #endif // CHROME_BROWSER_UI_PREFS_PREFS_TAB_HELPER_H_ |
| OLD | NEW |