OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_CONFIG_SERVICE_IMPL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_PROXY_CONFIG_SERVICE_IMPL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_PROXY_CONFIG_SERVICE_IMPL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_PROXY_CONFIG_SERVICE_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 bool UISetProxyConfigToDirect(); | 183 bool UISetProxyConfigToDirect(); |
184 bool UISetProxyConfigToAutoDetect(); | 184 bool UISetProxyConfigToAutoDetect(); |
185 bool UISetProxyConfigToPACScript(const GURL& pac_url); | 185 bool UISetProxyConfigToPACScript(const GURL& pac_url); |
186 bool UISetProxyConfigToSingleProxy(const net::ProxyServer& server); | 186 bool UISetProxyConfigToSingleProxy(const net::ProxyServer& server); |
187 bool UISetProxyConfigToProxyPerScheme(const std::string& scheme, | 187 bool UISetProxyConfigToProxyPerScheme(const std::string& scheme, |
188 const net::ProxyServer& server); | 188 const net::ProxyServer& server); |
189 // Only valid for MODE_SINGLE_PROXY or MODE_PROXY_PER_SCHEME. | 189 // Only valid for MODE_SINGLE_PROXY or MODE_PROXY_PER_SCHEME. |
190 bool UISetProxyConfigBypassRules(const net::ProxyBypassRules& bypass_rules); | 190 bool UISetProxyConfigBypassRules(const net::ProxyBypassRules& bypass_rules); |
191 | 191 |
192 // Implementation for SignedSettings::Delegate | 192 // Implementation for SignedSettings::Delegate |
193 virtual void OnSettingsOpSucceeded(bool value); | 193 virtual void OnSettingsOpCompleted(SignedSettings::ReturnCode code, |
194 virtual void OnSettingsOpSucceeded(std::string value); | 194 std::string value); |
195 virtual void OnSettingsOpFailed(SignedSettings::FailureCode code); | 195 virtual void OnSettingsOpCompleted(SignedSettings::ReturnCode code, |
| 196 bool value); |
196 | 197 |
197 private: | 198 private: |
198 friend class base::RefCountedThreadSafe<ProxyConfigServiceImpl>; | 199 friend class base::RefCountedThreadSafe<ProxyConfigServiceImpl>; |
199 | 200 |
200 // Init proxy to default config, i.e. AutoDetect. | 201 // Init proxy to default config, i.e. AutoDetect. |
201 // If |post_to_io_thread| is true, a task will be posted to IO thread to | 202 // If |post_to_io_thread| is true, a task will be posted to IO thread to |
202 // update |cached_config|. | 203 // update |cached_config|. |
203 void InitConfigToDefault(bool post_to_io_thread); | 204 void InitConfigToDefault(bool post_to_io_thread); |
204 | 205 |
205 // Persists proxy config to device. | 206 // Persists proxy config to device. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 // respectively. | 250 // respectively. |
250 scoped_refptr<SignedSettings> retrieve_property_op_; | 251 scoped_refptr<SignedSettings> retrieve_property_op_; |
251 scoped_refptr<SignedSettings> store_property_op_; | 252 scoped_refptr<SignedSettings> store_property_op_; |
252 | 253 |
253 DISALLOW_COPY_AND_ASSIGN(ProxyConfigServiceImpl); | 254 DISALLOW_COPY_AND_ASSIGN(ProxyConfigServiceImpl); |
254 }; | 255 }; |
255 | 256 |
256 } // namespace chromeos | 257 } // namespace chromeos |
257 | 258 |
258 #endif // CHROME_BROWSER_CHROMEOS_PROXY_CONFIG_SERVICE_IMPL_H_ | 259 #endif // CHROME_BROWSER_CHROMEOS_PROXY_CONFIG_SERVICE_IMPL_H_ |
OLD | NEW |