| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_FRAME_NP_PROXY_SERVICE_H_ | 5 #ifndef CHROME_FRAME_NP_PROXY_SERVICE_H_ |
| 6 #define CHROME_FRAME_NP_PROXY_SERVICE_H_ | 6 #define CHROME_FRAME_NP_PROXY_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 bool InitializePrefBranch(nsIPrefService* pref_service); | 95 bool InitializePrefBranch(nsIPrefService* pref_service); |
| 96 bool ReadProxySettings(nsIPrefBranch* pref_branch); | 96 bool ReadProxySettings(nsIPrefBranch* pref_branch); |
| 97 | 97 |
| 98 std::string GetStringPref(nsIPrefBranch* pref_branch, const char* pref_name); | 98 std::string GetStringPref(nsIPrefBranch* pref_branch, const char* pref_name); |
| 99 int GetIntPref(nsIPrefBranch* pref_branch, const char* pref_name); | 99 int GetIntPref(nsIPrefBranch* pref_branch, const char* pref_name); |
| 100 bool GetBoolPref(nsIPrefBranch* pref_branch, const char* pref_name); | 100 bool GetBoolPref(nsIPrefBranch* pref_branch, const char* pref_name); |
| 101 | 101 |
| 102 void Reset(); | 102 void Reset(); |
| 103 DictionaryValue* BuildProxyValueSet(); | 103 DictionaryValue* BuildProxyValueSet(); |
| 104 | 104 |
| 105 ChromeFrameAutomationClient* automation_client_; | 105 scoped_refptr<ChromeFrameAutomationClient> automation_client_; |
| 106 | 106 |
| 107 ScopedNsPtr<nsIServiceManager> service_manager_; | 107 ScopedNsPtr<nsIServiceManager> service_manager_; |
| 108 ScopedNsPtr<nsIPrefService> pref_service_; | 108 ScopedNsPtr<nsIPrefService> pref_service_; |
| 109 ScopedNsPtr<nsIPrefBranch2> observer_pref_branch_; | 109 ScopedNsPtr<nsIPrefBranch2> observer_pref_branch_; |
| 110 | 110 |
| 111 struct ProxyNames { | 111 struct ProxyNames { |
| 112 // Proxy type (http, https, ftp, etc...). | 112 // Proxy type (http, https, ftp, etc...). |
| 113 const char* chrome_scheme; | 113 const char* chrome_scheme; |
| 114 // Firefox preference name of the URL for this proxy type. | 114 // Firefox preference name of the URL for this proxy type. |
| 115 const char* pref_name; | 115 const char* pref_name; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 128 bool system_config_; | 128 bool system_config_; |
| 129 bool auto_detect_; | 129 bool auto_detect_; |
| 130 bool no_proxy_; | 130 bool no_proxy_; |
| 131 int type_; | 131 int type_; |
| 132 std::string pac_url_; | 132 std::string pac_url_; |
| 133 std::string proxy_bypass_list_; | 133 std::string proxy_bypass_list_; |
| 134 ManualProxyList manual_proxies_; | 134 ManualProxyList manual_proxies_; |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 #endif // CHROME_FRAME_NP_PROXY_SERVICE_H_ | 137 #endif // CHROME_FRAME_NP_PROXY_SERVICE_H_ |
| OLD | NEW |