OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/browser/sync/profile_sync_service.h" | |
11 #include "chrome/browser/options_page_base.h" | 10 #include "chrome/browser/options_page_base.h" |
12 #include "chrome/browser/profile.h" | 11 #include "chrome/browser/profile.h" |
| 12 #include "chrome/browser/sync/profile_sync_service.h" |
13 #include "chrome/common/pref_member.h" | 13 #include "chrome/common/pref_member.h" |
14 | 14 |
15 class ContentPageGtk : public OptionsPageBase, | 15 class ContentPageGtk : public OptionsPageBase, |
16 public ProfileSyncServiceObserver { | 16 public ProfileSyncServiceObserver { |
17 public: | 17 public: |
18 explicit ContentPageGtk(Profile* profile); | 18 explicit ContentPageGtk(Profile* profile); |
19 ~ContentPageGtk(); | 19 ~ContentPageGtk(); |
20 | 20 |
21 GtkWidget* get_page_widget() const { | 21 GtkWidget* get_page_widget() const { |
22 return page_; | 22 return page_; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 NotificationRegistrar registrar_; | 133 NotificationRegistrar registrar_; |
134 | 134 |
135 // Cached pointer to ProfileSyncService, if it exists. Kept up to date | 135 // Cached pointer to ProfileSyncService, if it exists. Kept up to date |
136 // and NULL-ed out on destruction. | 136 // and NULL-ed out on destruction. |
137 ProfileSyncService* sync_service_; | 137 ProfileSyncService* sync_service_; |
138 | 138 |
139 DISALLOW_COPY_AND_ASSIGN(ContentPageGtk); | 139 DISALLOW_COPY_AND_ASSIGN(ContentPageGtk); |
140 }; | 140 }; |
141 | 141 |
142 #endif // CHROME_BROWSER_GTK_OPTIONS_CONTENT_PAGE_GTK_H_ | 142 #endif // CHROME_BROWSER_GTK_OPTIONS_CONTENT_PAGE_GTK_H_ |
OLD | NEW |