OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CHROMEOS_PROXY_CROS_SETTINGS_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PROVIDER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PROVIDER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PROVIDER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "chrome/browser/chromeos/cros_settings_provider.h" | 11 #include "chrome/browser/chromeos/cros_settings_provider.h" |
12 #include "chrome/browser/chromeos/proxy_config_service_impl.h" | 12 #include "chrome/browser/chromeos/proxy_config_service_impl.h" |
13 | 13 |
14 namespace chromeos { | 14 namespace chromeos { |
15 | 15 |
16 class ProxyCrosSettingsProvider : public CrosSettingsProvider { | 16 class ProxyCrosSettingsProvider : public CrosSettingsProvider { |
17 public: | 17 public: |
18 ProxyCrosSettingsProvider(); | 18 ProxyCrosSettingsProvider(); |
Mattias Nissler (ping if slow)
2011/09/21 11:12:59
new line before comment
pastarmovj
2011/09/23 15:19:32
Done.
| |
19 // CrosSettingsProvider implementation. | 19 // CrosSettingsProvider implementation. |
20 virtual bool Get(const std::string& path, Value** out_value) const OVERRIDE; | 20 virtual const base::Value* Get(const std::string& path) const OVERRIDE; |
21 virtual bool GetTrusted(const std::string& path, | |
22 const Callback& callback) const OVERRIDE; | |
21 virtual bool HandlesSetting(const std::string& path) const OVERRIDE; | 23 virtual bool HandlesSetting(const std::string& path) const OVERRIDE; |
22 | 24 |
23 // Set the current network whose proxy settings will be displayed and possibly | 25 // Set the current network whose proxy settings will be displayed and possibly |
24 // edited on. | 26 // edited on. |
25 void SetCurrentNetwork(const std::string& network); | 27 void SetCurrentNetwork(const std::string& network); |
26 | 28 |
27 // Make the active network the current one whose proxy settings will be | 29 // Make the active network the current one whose proxy settings will be |
28 // displayed and possibly edited on. | 30 // displayed and possibly edited on. |
29 void MakeActiveNetworkCurrent(); | 31 void MakeActiveNetworkCurrent(); |
30 | 32 |
(...skipping 25 matching lines...) Expand all Loading... | |
56 | 58 |
57 Value* CreateServerPortValue( | 59 Value* CreateServerPortValue( |
58 const ProxyConfigServiceImpl::ProxyConfig::ManualProxy& proxy) const; | 60 const ProxyConfigServiceImpl::ProxyConfig::ManualProxy& proxy) const; |
59 | 61 |
60 DISALLOW_COPY_AND_ASSIGN(ProxyCrosSettingsProvider); | 62 DISALLOW_COPY_AND_ASSIGN(ProxyCrosSettingsProvider); |
61 }; | 63 }; |
62 | 64 |
63 } // namespace chromeos | 65 } // namespace chromeos |
64 | 66 |
65 #endif // CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PROVIDER_H_ | 67 #endif // CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PROVIDER_H_ |
OLD | NEW |