| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "net/proxy/proxy_resolver_script_data.h" | 5 #include "net/proxy/proxy_resolver_script_data.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 | 9 |
| 10 namespace net { | 10 namespace net { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 const string16& ProxyResolverScriptData::utf16() const { | 38 const string16& ProxyResolverScriptData::utf16() const { |
| 39 DCHECK_EQ(TYPE_SCRIPT_CONTENTS, type_); | 39 DCHECK_EQ(TYPE_SCRIPT_CONTENTS, type_); |
| 40 return utf16_; | 40 return utf16_; |
| 41 } | 41 } |
| 42 | 42 |
| 43 const GURL& ProxyResolverScriptData::url() const { | 43 const GURL& ProxyResolverScriptData::url() const { |
| 44 DCHECK_EQ(TYPE_SCRIPT_URL, type_); | 44 DCHECK_EQ(TYPE_SCRIPT_URL, type_); |
| 45 return url_; | 45 return url_; |
| 46 } | 46 } |
| 47 | 47 |
| 48 ProxyResolverScriptData::ProxyResolverScriptData(Type type, |
| 49 const GURL& url, |
| 50 const string16& utf16) |
| 51 : type_(type), |
| 52 url_(url), |
| 53 utf16_(utf16) { |
| 54 } |
| 55 |
| 56 ProxyResolverScriptData::~ProxyResolverScriptData() {} |
| 57 |
| 48 } // namespace net | 58 } // namespace net |
| OLD | NEW |