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> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/scoped_observer.h" | 16 #include "base/scoped_observer.h" |
17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
18 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/browser/profiles/profile_attributes_storage.h" | 19 #include "chrome/browser/profiles/profile_attributes_storage.h" |
20 #include "chrome/browser/ui/webui/options/options_ui.h" | 20 #include "chrome/browser/ui/webui/options/options_ui.h" |
21 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" | 21 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" |
| 22 #include "chrome/common/features.h" |
22 #include "components/policy/core/common/policy_service.h" | 23 #include "components/policy/core/common/policy_service.h" |
23 #include "components/prefs/pref_change_registrar.h" | 24 #include "components/prefs/pref_change_registrar.h" |
24 #include "components/prefs/pref_member.h" | 25 #include "components/prefs/pref_member.h" |
25 #include "components/search_engines/template_url_service_observer.h" | 26 #include "components/search_engines/template_url_service_observer.h" |
26 #include "components/signin/core/browser/signin_manager_base.h" | 27 #include "components/signin/core/browser/signin_manager_base.h" |
27 #include "components/signin/core/common/signin_pref_names.h" | 28 #include "components/signin/core/common/signin_pref_names.h" |
28 #include "components/sync/driver/sync_service_observer.h" | 29 #include "components/sync/driver/sync_service_observer.h" |
29 #include "content/public/browser/notification_observer.h" | 30 #include "content/public/browser/notification_observer.h" |
30 #include "extensions/browser/extension_registry_observer.h" | 31 #include "extensions/browser/extension_registry_observer.h" |
31 #include "google_apis/gaia/google_service_auth_error.h" | 32 #include "google_apis/gaia/google_service_auth_error.h" |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 // an appropriate dialog for configuring proxy settings. | 273 // an appropriate dialog for configuring proxy settings. |
273 void ShowNetworkProxySettings(const base::ListValue* args); | 274 void ShowNetworkProxySettings(const base::ListValue* args); |
274 #endif | 275 #endif |
275 | 276 |
276 #if !defined(USE_NSS_CERTS) | 277 #if !defined(USE_NSS_CERTS) |
277 // Callback for the "showManageSSLCertificates" message. This will invoke | 278 // Callback for the "showManageSSLCertificates" message. This will invoke |
278 // an appropriate certificate management action based on the platform. | 279 // an appropriate certificate management action based on the platform. |
279 void ShowManageSSLCertificates(const base::ListValue* args); | 280 void ShowManageSSLCertificates(const base::ListValue* args); |
280 #endif | 281 #endif |
281 | 282 |
282 #if defined(ENABLE_SERVICE_DISCOVERY) | 283 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
283 void ShowCloudPrintDevicesPage(const base::ListValue* args); | 284 void ShowCloudPrintDevicesPage(const base::ListValue* args); |
284 #endif | 285 #endif |
285 | 286 |
286 #if defined(ENABLE_PRINT_PREVIEW) | 287 #if defined(ENABLE_PRINT_PREVIEW) |
287 // Register localized values used by Cloud Print | 288 // Register localized values used by Cloud Print |
288 void RegisterCloudPrintValues(base::DictionaryValue* values); | 289 void RegisterCloudPrintValues(base::DictionaryValue* values); |
289 #endif | 290 #endif |
290 | 291 |
291 // Check if hotword is available. If it is, tell the javascript to show | 292 // Check if hotword is available. If it is, tell the javascript to show |
292 // the hotword section of the settings page. | 293 // the hotword section of the settings page. |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 | 430 |
430 // Used to get WeakPtr to self for use on the UI thread. | 431 // Used to get WeakPtr to self for use on the UI thread. |
431 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; | 432 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; |
432 | 433 |
433 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 434 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
434 }; | 435 }; |
435 | 436 |
436 } // namespace options | 437 } // namespace options |
437 | 438 |
438 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 439 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
OLD | NEW |