OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 NET_PROXY_PROXY_CONFIG_H_ | 5 #ifndef NET_PROXY_PROXY_CONFIG_H_ |
6 #define NET_PROXY_PROXY_CONFIG_H_ | 6 #define NET_PROXY_PROXY_CONFIG_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // Returns true if the given config is equivalent to this config. The | 167 // Returns true if the given config is equivalent to this config. The |
168 // comparison ignores differences in |id()| and |source()|. | 168 // comparison ignores differences in |id()| and |source()|. |
169 bool Equals(const ProxyConfig& other) const; | 169 bool Equals(const ProxyConfig& other) const; |
170 | 170 |
171 // Returns true if this config contains any "automatic" settings. See the | 171 // Returns true if this config contains any "automatic" settings. See the |
172 // class description for what that means. | 172 // class description for what that means. |
173 bool HasAutomaticSettings() const; | 173 bool HasAutomaticSettings() const; |
174 | 174 |
175 void ClearAutomaticSettings(); | 175 void ClearAutomaticSettings(); |
176 | 176 |
177 // Creates a Value dump of this configuration. The caller is responsible for | 177 // Creates a Value dump of this configuration. |
178 // deleting the returned value. | 178 scoped_ptr<base::DictionaryValue> ToValue() const; |
179 base::DictionaryValue* ToValue() const; | |
180 | 179 |
181 ProxyRules& proxy_rules() { | 180 ProxyRules& proxy_rules() { |
182 return proxy_rules_; | 181 return proxy_rules_; |
183 } | 182 } |
184 | 183 |
185 const ProxyRules& proxy_rules() const { | 184 const ProxyRules& proxy_rules() const { |
186 return proxy_rules_; | 185 return proxy_rules_; |
187 } | 186 } |
188 | 187 |
189 void set_pac_url(const GURL& url) { | 188 void set_pac_url(const GURL& url) { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 ProxyConfigSource source_; | 259 ProxyConfigSource source_; |
261 | 260 |
262 ID id_; | 261 ID id_; |
263 }; | 262 }; |
264 | 263 |
265 } // namespace net | 264 } // namespace net |
266 | 265 |
267 | 266 |
268 | 267 |
269 #endif // NET_PROXY_PROXY_CONFIG_H_ | 268 #endif // NET_PROXY_PROXY_CONFIG_H_ |
OLD | NEW |