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 "chrome/browser/net/url_request_mock_http_job.h" | 5 #include "content/browser/net/url_request_mock_http_job.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "base/threading/thread_restrictions.h" | 10 #include "base/threading/thread_restrictions.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "chrome/common/url_constants.h" | 12 #include "chrome/common/url_constants.h" |
13 #include "net/base/net_util.h" | 13 #include "net/base/net_util.h" |
14 #include "net/http/http_response_headers.h" | 14 #include "net/http/http_response_headers.h" |
15 #include "net/url_request/url_request_filter.h" | 15 #include "net/url_request/url_request_filter.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 net::HttpResponseInfo info; | 109 net::HttpResponseInfo info; |
110 GetResponseInfoConst(&info); | 110 GetResponseInfoConst(&info); |
111 return info.headers && info.headers->GetMimeType(mime_type); | 111 return info.headers && info.headers->GetMimeType(mime_type); |
112 } | 112 } |
113 | 113 |
114 bool URLRequestMockHTTPJob::GetCharset(std::string* charset) { | 114 bool URLRequestMockHTTPJob::GetCharset(std::string* charset) { |
115 net::HttpResponseInfo info; | 115 net::HttpResponseInfo info; |
116 GetResponseInfo(&info); | 116 GetResponseInfo(&info); |
117 return info.headers && info.headers->GetCharset(charset); | 117 return info.headers && info.headers->GetCharset(charset); |
118 } | 118 } |
OLD | NEW |