| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/test/url_request/url_request_mock_http_job.h" | 5 #include "net/test/url_request/url_request_mock_http_job.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/files/file_util.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 11 #include "base/task_runner_util.h" | 11 #include "base/task_runner_util.h" |
| 12 #include "base/threading/sequenced_worker_pool.h" | 12 #include "base/threading/sequenced_worker_pool.h" |
| 13 #include "base/threading/thread_restrictions.h" | 13 #include "base/threading/thread_restrictions.h" |
| 14 #include "net/base/filename_util.h" | 14 #include "net/base/filename_util.h" |
| 15 #include "net/http/http_response_headers.h" | 15 #include "net/http/http_response_headers.h" |
| 16 #include "net/url_request/url_request_filter.h" | 16 #include "net/url_request/url_request_filter.h" |
| 17 #include "net/url_request/url_request_interceptor.h" | 17 #include "net/url_request/url_request_interceptor.h" |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 return net::URLRequestJob::GetResponseCode(); | 201 return net::URLRequestJob::GetResponseCode(); |
| 202 } | 202 } |
| 203 | 203 |
| 204 bool URLRequestMockHTTPJob::GetCharset(std::string* charset) { | 204 bool URLRequestMockHTTPJob::GetCharset(std::string* charset) { |
| 205 net::HttpResponseInfo info; | 205 net::HttpResponseInfo info; |
| 206 GetResponseInfo(&info); | 206 GetResponseInfo(&info); |
| 207 return info.headers.get() && info.headers->GetCharset(charset); | 207 return info.headers.get() && info.headers->GetCharset(charset); |
| 208 } | 208 } |
| 209 | 209 |
| 210 } // namespace net | 210 } // namespace net |
| OLD | NEW |