Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: chrome/browser/chromeos/proxy_config_service_impl.h

Issue 5671003: [Chrome OS] Plumb new error codes from SignedSettings to consumers of the API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove untoward log statement Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/signed_settings_unittest.cc ('k') | chrome/browser/chromeos/proxy_config_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698