OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/http/failing_http_transaction_factory.h" | 5 #include "net/http/failing_http_transaction_factory.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
14 #include "base/threading/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
15 #include "net/base/load_timing_info.h" | 15 #include "net/base/load_timing_info.h" |
16 #include "net/base/net_error_details.h" | 16 #include "net/base/net_error_details.h" |
17 #include "net/http/http_response_info.h" | 17 #include "net/http/http_response_info.h" |
18 #include "net/socket/connection_attempts.h" | 18 #include "net/socket/connection_attempts.h" |
19 | 19 |
20 namespace net { | 20 namespace net { |
21 | 21 |
22 class AuthCredentials; | 22 class AuthCredentials; |
23 class NetLogWithSource; | |
24 class HttpRequestHeaders; | 23 class HttpRequestHeaders; |
25 class IOBuffer; | 24 class IOBuffer; |
| 25 class NetLogWithSource; |
26 class SSLPrivateKey; | 26 class SSLPrivateKey; |
27 class X509Certificate; | 27 class X509Certificate; |
28 | 28 |
29 namespace { | 29 namespace { |
30 | 30 |
31 // A simple class to interpose between the cache and network http layers. | 31 // A simple class to interpose between the cache and network http layers. |
32 // These transactions can be generated by the FailingHttpTransactionFactory | 32 // These transactions can be generated by the FailingHttpTransactionFactory |
33 // to test interactions between cache and network. | 33 // to test interactions between cache and network. |
34 class FailingHttpTransaction : public HttpTransaction { | 34 class FailingHttpTransaction : public HttpTransaction { |
35 public: | 35 public: |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 | 207 |
208 HttpCache* FailingHttpTransactionFactory::GetCache() { | 208 HttpCache* FailingHttpTransactionFactory::GetCache() { |
209 return NULL; | 209 return NULL; |
210 } | 210 } |
211 | 211 |
212 HttpNetworkSession* FailingHttpTransactionFactory::GetSession() { | 212 HttpNetworkSession* FailingHttpTransactionFactory::GetSession() { |
213 return session_; | 213 return session_; |
214 } | 214 } |
215 | 215 |
216 } // namespace net | 216 } // namespace net |
OLD | NEW |