| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "components/signin/core/browser/signin_manager_base.h" | 26 #include "components/signin/core/browser/signin_manager_base.h" |
| 27 #include "components/signin/core/common/signin_pref_names.h" | 27 #include "components/signin/core/common/signin_pref_names.h" |
| 28 #include "components/sync_driver/sync_service_observer.h" | 28 #include "components/sync_driver/sync_service_observer.h" |
| 29 #include "content/public/browser/notification_observer.h" | 29 #include "content/public/browser/notification_observer.h" |
| 30 #include "extensions/browser/extension_registry_observer.h" | 30 #include "extensions/browser/extension_registry_observer.h" |
| 31 #include "google_apis/gaia/google_service_auth_error.h" | 31 #include "google_apis/gaia/google_service_auth_error.h" |
| 32 #include "ui/base/models/table_model_observer.h" | 32 #include "ui/base/models/table_model_observer.h" |
| 33 #include "ui/shell_dialogs/select_file_dialog.h" | 33 #include "ui/shell_dialogs/select_file_dialog.h" |
| 34 | 34 |
| 35 #if defined(OS_CHROMEOS) | 35 #if defined(OS_CHROMEOS) |
| 36 #include "chrome/browser/chromeos/policy/consumer_management_service.h" | |
| 37 #include "chrome/browser/chromeos/system/pointer_device_observer.h" | 36 #include "chrome/browser/chromeos/system/pointer_device_observer.h" |
| 38 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h" | 37 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h" |
| 39 #else // defined(OS_CHROMEOS) | 38 #else // defined(OS_CHROMEOS) |
| 40 #include "chrome/browser/shell_integration.h" | 39 #include "chrome/browser/shell_integration.h" |
| 41 #endif // !defined(OS_CHROMEOS) | 40 #endif // !defined(OS_CHROMEOS) |
| 42 | 41 |
| 43 class AutocompleteController; | 42 class AutocompleteController; |
| 44 class CloudPrintSetupHandler; | 43 class CloudPrintSetupHandler; |
| 45 class CustomHomePagesTableModel; | 44 class CustomHomePagesTableModel; |
| 46 class TemplateURLService; | 45 class TemplateURLService; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 57 | 56 |
| 58 // Chrome browser options page UI handler. | 57 // Chrome browser options page UI handler. |
| 59 class BrowserOptionsHandler | 58 class BrowserOptionsHandler |
| 60 : public OptionsPageUIHandler, | 59 : public OptionsPageUIHandler, |
| 61 public ProfileAttributesStorage::Observer, | 60 public ProfileAttributesStorage::Observer, |
| 62 public sync_driver::SyncServiceObserver, | 61 public sync_driver::SyncServiceObserver, |
| 63 public SigninManagerBase::Observer, | 62 public SigninManagerBase::Observer, |
| 64 public ui::SelectFileDialog::Listener, | 63 public ui::SelectFileDialog::Listener, |
| 65 #if defined(OS_CHROMEOS) | 64 #if defined(OS_CHROMEOS) |
| 66 public chromeos::system::PointerDeviceObserver::Observer, | 65 public chromeos::system::PointerDeviceObserver::Observer, |
| 67 public policy::ConsumerManagementService::Observer, | |
| 68 public ArcAppListPrefs::Observer, | 66 public ArcAppListPrefs::Observer, |
| 69 #endif | 67 #endif |
| 70 public TemplateURLServiceObserver, | 68 public TemplateURLServiceObserver, |
| 71 public extensions::ExtensionRegistryObserver, | 69 public extensions::ExtensionRegistryObserver, |
| 72 public content::NotificationObserver, | 70 public content::NotificationObserver, |
| 73 public policy::PolicyService::Observer { | 71 public policy::PolicyService::Observer { |
| 74 public: | 72 public: |
| 75 BrowserOptionsHandler(); | 73 BrowserOptionsHandler(); |
| 76 ~BrowserOptionsHandler() override; | 74 ~BrowserOptionsHandler() override; |
| 77 | 75 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 void OnUserImagePolicyChanged(const base::Value* previous_policy, | 138 void OnUserImagePolicyChanged(const base::Value* previous_policy, |
| 141 const base::Value* current_policy); | 139 const base::Value* current_policy); |
| 142 | 140 |
| 143 // Will be called when the policy::key::kWallpaperImage policy changes. | 141 // Will be called when the policy::key::kWallpaperImage policy changes. |
| 144 void OnWallpaperPolicyChanged(const base::Value* previous_policy, | 142 void OnWallpaperPolicyChanged(const base::Value* previous_policy, |
| 145 const base::Value* current_policy); | 143 const base::Value* current_policy); |
| 146 | 144 |
| 147 // Will be called when powerwash dialog is shown. | 145 // Will be called when powerwash dialog is shown. |
| 148 void OnPowerwashDialogShow(const base::ListValue* args); | 146 void OnPowerwashDialogShow(const base::ListValue* args); |
| 149 | 147 |
| 150 // ConsumerManagementService::Observer: | |
| 151 void OnConsumerManagementStatusChanged() override; | |
| 152 | |
| 153 // ArcAppListPrefs::Observer overrides. | 148 // ArcAppListPrefs::Observer overrides. |
| 154 void OnAppReadyChanged(const std::string& app_id, bool ready) override; | 149 void OnAppReadyChanged(const std::string& app_id, bool ready) override; |
| 155 void OnAppRemoved(const std::string& app_id) override; | 150 void OnAppRemoved(const std::string& app_id) override; |
| 156 void OnAppRegistered(const std::string& app_id, | 151 void OnAppRegistered(const std::string& app_id, |
| 157 const ArcAppListPrefs::AppInfo& app_info) override; | 152 const ArcAppListPrefs::AppInfo& app_info) override; |
| 158 #endif | 153 #endif |
| 159 | 154 |
| 160 void UpdateSyncState(); | 155 void UpdateSyncState(); |
| 161 | 156 |
| 162 // Will be called when the kSigninAllowed pref has changed. | 157 // Will be called when the kSigninAllowed pref has changed. |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 | 429 |
| 435 // Used to get WeakPtr to self for use on the UI thread. | 430 // Used to get WeakPtr to self for use on the UI thread. |
| 436 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; | 431 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; |
| 437 | 432 |
| 438 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 433 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
| 439 }; | 434 }; |
| 440 | 435 |
| 441 } // namespace options | 436 } // namespace options |
| 442 | 437 |
| 443 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 438 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
| OLD | NEW |