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 12 matching lines...) Expand all Loading... |
23 #include "components/policy/core/common/policy_service.h" | 23 #include "components/policy/core/common/policy_service.h" |
24 #include "components/prefs/pref_change_registrar.h" | 24 #include "components/prefs/pref_change_registrar.h" |
25 #include "components/prefs/pref_member.h" | 25 #include "components/prefs/pref_member.h" |
26 #include "components/search_engines/template_url_service_observer.h" | 26 #include "components/search_engines/template_url_service_observer.h" |
27 #include "components/signin/core/browser/signin_manager_base.h" | 27 #include "components/signin/core/browser/signin_manager_base.h" |
28 #include "components/signin/core/common/signin_pref_names.h" | 28 #include "components/signin/core/common/signin_pref_names.h" |
29 #include "components/sync/driver/sync_service_observer.h" | 29 #include "components/sync/driver/sync_service_observer.h" |
30 #include "content/public/browser/notification_observer.h" | 30 #include "content/public/browser/notification_observer.h" |
31 #include "extensions/browser/extension_registry_observer.h" | 31 #include "extensions/browser/extension_registry_observer.h" |
32 #include "google_apis/gaia/google_service_auth_error.h" | 32 #include "google_apis/gaia/google_service_auth_error.h" |
| 33 #include "printing/features/features.h" |
33 #include "ui/base/models/table_model_observer.h" | 34 #include "ui/base/models/table_model_observer.h" |
34 #include "ui/shell_dialogs/select_file_dialog.h" | 35 #include "ui/shell_dialogs/select_file_dialog.h" |
35 | 36 |
36 #if defined(OS_CHROMEOS) | 37 #if defined(OS_CHROMEOS) |
37 #include "chrome/browser/chromeos/system/pointer_device_observer.h" | 38 #include "chrome/browser/chromeos/system/pointer_device_observer.h" |
38 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h" | 39 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h" |
39 #else // defined(OS_CHROMEOS) | 40 #else // defined(OS_CHROMEOS) |
40 #include "chrome/browser/shell_integration.h" | 41 #include "chrome/browser/shell_integration.h" |
41 #endif // !defined(OS_CHROMEOS) | 42 #endif // !defined(OS_CHROMEOS) |
42 | 43 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 const content::NotificationDetails& details) override; | 115 const content::NotificationDetails& details) override; |
115 | 116 |
116 // ProfileAttributesStorage::Observer implementation. | 117 // ProfileAttributesStorage::Observer implementation. |
117 void OnProfileAdded(const base::FilePath& profile_path) override; | 118 void OnProfileAdded(const base::FilePath& profile_path) override; |
118 void OnProfileWasRemoved(const base::FilePath& profile_path, | 119 void OnProfileWasRemoved(const base::FilePath& profile_path, |
119 const base::string16& profile_name) override; | 120 const base::string16& profile_name) override; |
120 void OnProfileNameChanged(const base::FilePath& profile_path, | 121 void OnProfileNameChanged(const base::FilePath& profile_path, |
121 const base::string16& old_profile_name) override; | 122 const base::string16& old_profile_name) override; |
122 void OnProfileAvatarChanged(const base::FilePath& profile_path) override; | 123 void OnProfileAvatarChanged(const base::FilePath& profile_path) override; |
123 | 124 |
124 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OS_CHROMEOS) | 125 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) && !defined(OS_CHROMEOS) |
125 void OnCloudPrintPrefsChanged(); | 126 void OnCloudPrintPrefsChanged(); |
126 #endif | 127 #endif |
127 | 128 |
128 // SelectFileDialog::Listener implementation | 129 // SelectFileDialog::Listener implementation |
129 void FileSelected(const base::FilePath& path, | 130 void FileSelected(const base::FilePath& path, |
130 int index, | 131 int index, |
131 void* params) override; | 132 void* params) override; |
132 | 133 |
133 #if defined(OS_CHROMEOS) | 134 #if defined(OS_CHROMEOS) |
134 // PointerDeviceObserver::Observer implementation. | 135 // PointerDeviceObserver::Observer implementation. |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 #if !defined(USE_NSS_CERTS) | 278 #if !defined(USE_NSS_CERTS) |
278 // Callback for the "showManageSSLCertificates" message. This will invoke | 279 // Callback for the "showManageSSLCertificates" message. This will invoke |
279 // an appropriate certificate management action based on the platform. | 280 // an appropriate certificate management action based on the platform. |
280 void ShowManageSSLCertificates(const base::ListValue* args); | 281 void ShowManageSSLCertificates(const base::ListValue* args); |
281 #endif | 282 #endif |
282 | 283 |
283 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) | 284 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
284 void ShowCloudPrintDevicesPage(const base::ListValue* args); | 285 void ShowCloudPrintDevicesPage(const base::ListValue* args); |
285 #endif | 286 #endif |
286 | 287 |
287 #if defined(ENABLE_PRINT_PREVIEW) | 288 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
288 // Register localized values used by Cloud Print | 289 // Register localized values used by Cloud Print |
289 void RegisterCloudPrintValues(base::DictionaryValue* values); | 290 void RegisterCloudPrintValues(base::DictionaryValue* values); |
290 #endif | 291 #endif |
291 | 292 |
292 // Check if hotword is available. If it is, tell the javascript to show | 293 // Check if hotword is available. If it is, tell the javascript to show |
293 // the hotword section of the settings page. | 294 // the hotword section of the settings page. |
294 void SendHotwordAvailable(); | 295 void SendHotwordAvailable(); |
295 | 296 |
296 // Callback that updates the visibility of the audio history upon completion | 297 // Callback that updates the visibility of the audio history upon completion |
297 // of a call to the server to the get the current value. | 298 // of a call to the server to the get the current value. |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 | 431 |
431 // Used to get WeakPtr to self for use on the UI thread. | 432 // Used to get WeakPtr to self for use on the UI thread. |
432 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; | 433 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; |
433 | 434 |
434 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 435 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
435 }; | 436 }; |
436 | 437 |
437 } // namespace options | 438 } // namespace options |
438 | 439 |
439 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 440 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
OLD | NEW |