Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PARSER_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PARSER_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/values.h" | |
| 10 #include "chrome/browser/chromeos/proxy_config_service_impl.h" | |
| 11 | |
| 12 class Profile; | |
| 13 | |
| 14 namespace chromeos { | |
| 15 | |
| 16 extern const char kProxyPacUrl[]; | |
| 17 extern const char kProxySingleHttp[]; | |
| 18 extern const char kProxySingleHttpPort[]; | |
| 19 extern const char kProxyHttpUrl[]; | |
| 20 extern const char kProxyHttpPort[]; | |
| 21 extern const char kProxyHttpsUrl[]; | |
| 22 extern const char kProxyHttpsPort[]; | |
| 23 extern const char kProxyType[]; | |
| 24 extern const char kProxySingle[]; | |
| 25 extern const char kProxyFtpUrl[]; | |
| 26 extern const char kProxyFtpPort[]; | |
| 27 extern const char kProxySocks[]; | |
| 28 extern const char kProxySocksPort[]; | |
| 29 extern const char kProxyIgnoreList[]; | |
| 30 | |
| 31 class ProxyCrosSettingsParser { | |
| 32 public: | |
| 33 // Sets a value in the current proxy configuration on the specified profile. | |
| 34 static void SetProxyPrefValue(Profile* profile, | |
| 35 const std::string& path, | |
| 36 const base::Value* in_value); | |
| 37 // Gets a value from the current proxy configuration on the specified profile. | |
| 38 static bool GetProxyPrefValue(Profile* profile, | |
| 39 const std::string& path, | |
| 40 base::Value** out_value); | |
| 41 | |
| 42 private: | |
| 43 // We should never need objects of this class it is meant only to provide its | |
|
kuan
2011/11/08 14:45:25
s/class it/class; it/
| |
| 44 // helper functions. | |
| 45 explicit ProxyCrosSettingsParser(); | |
| 46 DISALLOW_COPY_AND_ASSIGN(ProxyCrosSettingsParser); | |
| 47 }; | |
| 48 | |
| 49 } // namespace chromeos | |
| 50 | |
| 51 #endif // CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PARSER_H_ | |
| OLD | NEW |