| Index: net/proxy/proxy_resolver_script_data.cc
|
| diff --git a/net/proxy/proxy_resolver_script_data.cc b/net/proxy/proxy_resolver_script_data.cc
|
| index 0314fc3560b20c359f9ae8a48cb3510bafa06947..ff96aa4c20da12faf5ed7464246762f7e67ead80 100644
|
| --- a/net/proxy/proxy_resolver_script_data.cc
|
| +++ b/net/proxy/proxy_resolver_script_data.cc
|
| @@ -45,6 +45,23 @@ const GURL& ProxyResolverScriptData::url() const {
|
| return url_;
|
| }
|
|
|
| +bool ProxyResolverScriptData::Equals(
|
| + const ProxyResolverScriptData* other) const {
|
| + if (type() != other->type())
|
| + return false;
|
| +
|
| + switch (type()) {
|
| + case TYPE_SCRIPT_CONTENTS:
|
| + return utf16() == other->utf16();
|
| + case TYPE_SCRIPT_URL:
|
| + return url() == other->url();
|
| + case TYPE_AUTO_DETECT:
|
| + return true;
|
| + }
|
| +
|
| + return false; // Shouldn't be reached.
|
| +}
|
| +
|
| ProxyResolverScriptData::ProxyResolverScriptData(Type type,
|
| const GURL& url,
|
| const string16& utf16)
|
|
|