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

Unified Diff: net/proxy/proxy_config.h

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months 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 side-by-side diff with in-line comments
Download patch
Index: net/proxy/proxy_config.h
diff --git a/net/proxy/proxy_config.h b/net/proxy/proxy_config.h
index e558174a4658bc558afaa331035b766548274e92..94c8dc1aeb32abfeaee60c8dbf73d2b8904f2b60 100644
--- a/net/proxy/proxy_config.h
+++ b/net/proxy/proxy_config.h
@@ -51,9 +51,7 @@ class NET_EXPORT ProxyConfig {
ProxyRules();
~ProxyRules();
- bool empty() const {
- return type == TYPE_NO_RULES;
- }
+ bool empty() const { return type == TYPE_NO_RULES; }
// Sets |result| with the proxies to use for |url| based on the current
// rules.
@@ -172,55 +170,35 @@ class NET_EXPORT ProxyConfig {
// deleting the returned value.
base::DictionaryValue* ToValue() const;
- ProxyRules& proxy_rules() {
- return proxy_rules_;
- }
+ ProxyRules& proxy_rules() { return proxy_rules_; }
- const ProxyRules& proxy_rules() const {
- return proxy_rules_;
- }
+ const ProxyRules& proxy_rules() const { return proxy_rules_; }
- void set_pac_url(const GURL& url) {
- pac_url_ = url;
- }
+ void set_pac_url(const GURL& url) { pac_url_ = url; }
- const GURL& pac_url() const {
- return pac_url_;
- }
+ const GURL& pac_url() const { return pac_url_; }
void set_pac_mandatory(bool enable_pac_mandatory) {
pac_mandatory_ = enable_pac_mandatory;
}
- bool pac_mandatory() const {
- return pac_mandatory_;
- }
+ bool pac_mandatory() const { return pac_mandatory_; }
- bool has_pac_url() const {
- return pac_url_.is_valid();
- }
+ bool has_pac_url() const { return pac_url_.is_valid(); }
void set_auto_detect(bool enable_auto_detect) {
auto_detect_ = enable_auto_detect;
}
- bool auto_detect() const {
- return auto_detect_;
- }
+ bool auto_detect() const { return auto_detect_; }
- void set_source(ProxyConfigSource source) {
- source_ = source;
- }
+ void set_source(ProxyConfigSource source) { source_ = source; }
- ProxyConfigSource source() const {
- return source_;
- }
+ ProxyConfigSource source() const { return source_; }
// Helpers to construct some common proxy configurations.
- static ProxyConfig CreateDirect() {
- return ProxyConfig();
- }
+ static ProxyConfig CreateDirect() { return ProxyConfig(); }
static ProxyConfig CreateAutoDetect() {
ProxyConfig config;
@@ -258,6 +236,4 @@ class NET_EXPORT ProxyConfig {
} // namespace net
-
-
#endif // NET_PROXY_PROXY_CONFIG_H_

Powered by Google App Engine
This is Rietveld 408576698