| 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_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "base/prefs/pref_change_registrar.h" | 15 #include "base/prefs/pref_change_registrar.h" |
| 16 #include "base/prefs/pref_member.h" | 16 #include "base/prefs/pref_member.h" |
| 17 #include "base/scoped_observer.h" | 17 #include "base/scoped_observer.h" |
| 18 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
| 19 #include "chrome/browser/shell_integration.h" | 19 #include "chrome/browser/shell_integration.h" |
| 20 #include "chrome/browser/sync/profile_sync_service_observer.h" | 20 #include "chrome/browser/sync/profile_sync_service_observer.h" |
| 21 #include "chrome/browser/ui/host_desktop.h" | 21 #include "chrome/browser/ui/host_desktop.h" |
| 22 #include "chrome/browser/ui/webui/options/options_ui.h" | 22 #include "chrome/browser/ui/webui/options/options_ui.h" |
| 23 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" |
| 23 #include "components/search_engines/template_url_service_observer.h" | 24 #include "components/search_engines/template_url_service_observer.h" |
| 24 #include "components/signin/core/browser/signin_manager_base.h" | 25 #include "components/signin/core/browser/signin_manager_base.h" |
| 25 #include "content/public/browser/notification_observer.h" | 26 #include "content/public/browser/notification_observer.h" |
| 26 #include "extensions/browser/extension_registry_observer.h" | 27 #include "extensions/browser/extension_registry_observer.h" |
| 27 #include "google_apis/gaia/google_service_auth_error.h" | 28 #include "google_apis/gaia/google_service_auth_error.h" |
| 28 #include "ui/base/models/table_model_observer.h" | 29 #include "ui/base/models/table_model_observer.h" |
| 29 #include "ui/shell_dialogs/select_file_dialog.h" | 30 #include "ui/shell_dialogs/select_file_dialog.h" |
| 30 | 31 |
| 31 #if defined(OS_CHROMEOS) | 32 #if defined(OS_CHROMEOS) |
| 32 #include "chrome/browser/chromeos/policy/consumer_management_service.h" | 33 #include "chrome/browser/chromeos/policy/consumer_management_service.h" |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 StringPrefMember homepage_; | 366 StringPrefMember homepage_; |
| 366 BooleanPrefMember default_browser_policy_; | 367 BooleanPrefMember default_browser_policy_; |
| 367 | 368 |
| 368 TemplateURLService* template_url_service_; // Weak. | 369 TemplateURLService* template_url_service_; // Weak. |
| 369 | 370 |
| 370 scoped_refptr<ui::SelectFileDialog> select_folder_dialog_; | 371 scoped_refptr<ui::SelectFileDialog> select_folder_dialog_; |
| 371 | 372 |
| 372 bool cloud_print_mdns_ui_enabled_; | 373 bool cloud_print_mdns_ui_enabled_; |
| 373 | 374 |
| 374 StringPrefMember auto_open_files_; | 375 StringPrefMember auto_open_files_; |
| 375 DoublePrefMember default_zoom_level_; | 376 |
| 377 scoped_ptr<chrome::ChromeZoomLevelPrefs::DefaultZoomLevelSubscription> |
| 378 default_zoom_level_subscription_; |
| 376 | 379 |
| 377 PrefChangeRegistrar profile_pref_registrar_; | 380 PrefChangeRegistrar profile_pref_registrar_; |
| 378 #if defined(OS_CHROMEOS) | 381 #if defined(OS_CHROMEOS) |
| 379 scoped_ptr<policy::PolicyChangeRegistrar> policy_registrar_; | 382 scoped_ptr<policy::PolicyChangeRegistrar> policy_registrar_; |
| 380 #endif | 383 #endif |
| 381 | 384 |
| 382 ScopedObserver<SigninManagerBase, SigninManagerBase::Observer> | 385 ScopedObserver<SigninManagerBase, SigninManagerBase::Observer> |
| 383 signin_observer_; | 386 signin_observer_; |
| 384 | 387 |
| 385 // Used to get WeakPtr to self for use on the UI thread. | 388 // Used to get WeakPtr to self for use on the UI thread. |
| 386 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; | 389 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; |
| 387 | 390 |
| 388 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 391 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
| 389 }; | 392 }; |
| 390 | 393 |
| 391 } // namespace options | 394 } // namespace options |
| 392 | 395 |
| 393 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 396 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
| OLD | NEW |