| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <ostream> | 8 #include <ostream> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 // Returns true if the given config is equivalent to this config. | 100 // Returns true if the given config is equivalent to this config. |
| 101 bool Equals(const ProxyConfig& other) const; | 101 bool Equals(const ProxyConfig& other) const; |
| 102 | 102 |
| 103 private: | 103 private: |
| 104 static int last_id_; | 104 static int last_id_; |
| 105 int id_; | 105 int id_; |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 } // namespace net | 108 } // namespace net |
| 109 | 109 |
| 110 // Dump a human-readable string representation of the configuration to |out|; | 110 // Dumps a human-readable string representation of the configuration to |out|; |
| 111 // used when logging the configuration changes. | 111 // used when logging the configuration changes. |
| 112 std::ostream& operator<<(std::ostream& out, const net::ProxyConfig& config); | 112 std::ostream& operator<<(std::ostream& out, const net::ProxyConfig& config); |
| 113 | 113 |
| 114 // Dumps a human-readable string representation of the |rules| to |out|; |
| 115 // used for logging and for better unittest failure output. |
| 116 std::ostream& operator<<(std::ostream& out, |
| 117 const net::ProxyConfig::ProxyRules& rules); |
| 118 |
| 114 #endif // NET_PROXY_PROXY_CONFIG_H_ | 119 #endif // NET_PROXY_PROXY_CONFIG_H_ |
| OLD | NEW |