| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_GTK_OPTIONS_CONTENT_PAGE_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_OPTIONS_CONTENT_PAGE_GTK_H_ |
| 6 #define CHROME_BROWSER_GTK_OPTIONS_CONTENT_PAGE_GTK_H_ | 6 #define CHROME_BROWSER_GTK_OPTIONS_CONTENT_PAGE_GTK_H_ |
| 7 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include "app/gtk_signal.h" | 10 #include "app/gtk_signal.h" |
| 11 #include "chrome/browser/autofill/personal_data_manager.h" | 11 #include "chrome/browser/autofill/personal_data_manager.h" |
| 12 #include "chrome/browser/gtk/options/managed_prefs_banner_gtk.h" |
| 12 #include "chrome/browser/options_page_base.h" | 13 #include "chrome/browser/options_page_base.h" |
| 13 #include "chrome/browser/pref_member.h" | 14 #include "chrome/browser/pref_member.h" |
| 14 #include "chrome/browser/profile.h" | 15 #include "chrome/browser/profile.h" |
| 15 #include "chrome/browser/sync/profile_sync_service.h" | 16 #include "chrome/browser/sync/profile_sync_service.h" |
| 16 | 17 |
| 17 class ContentPageGtk : public OptionsPageBase, | 18 class ContentPageGtk : public OptionsPageBase, |
| 18 public ProfileSyncServiceObserver { | 19 public ProfileSyncServiceObserver { |
| 19 public: | 20 public: |
| 20 explicit ContentPageGtk(Profile* profile); | 21 explicit ContentPageGtk(Profile* profile); |
| 21 ~ContentPageGtk(); | 22 ~ContentPageGtk(); |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 // Flag to ignore gtk callbacks while we are loading prefs, to avoid | 102 // Flag to ignore gtk callbacks while we are loading prefs, to avoid |
| 102 // then turning around and saving them again. | 103 // then turning around and saving them again. |
| 103 bool initializing_; | 104 bool initializing_; |
| 104 | 105 |
| 105 NotificationRegistrar registrar_; | 106 NotificationRegistrar registrar_; |
| 106 | 107 |
| 107 // Cached pointer to ProfileSyncService, if it exists. Kept up to date | 108 // Cached pointer to ProfileSyncService, if it exists. Kept up to date |
| 108 // and NULL-ed out on destruction. | 109 // and NULL-ed out on destruction. |
| 109 ProfileSyncService* sync_service_; | 110 ProfileSyncService* sync_service_; |
| 110 | 111 |
| 112 // Tracks managed preference warning banner state. |
| 113 ManagedPrefsBannerGtk managed_prefs_banner_; |
| 114 |
| 111 DISALLOW_COPY_AND_ASSIGN(ContentPageGtk); | 115 DISALLOW_COPY_AND_ASSIGN(ContentPageGtk); |
| 112 }; | 116 }; |
| 113 | 117 |
| 114 #endif // CHROME_BROWSER_GTK_OPTIONS_CONTENT_PAGE_GTK_H_ | 118 #endif // CHROME_BROWSER_GTK_OPTIONS_CONTENT_PAGE_GTK_H_ |
| OLD | NEW |