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" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 return ERR_FAILED; | 120 return ERR_FAILED; |
121 } | 121 } |
122 | 122 |
123 void FailingHttpTransaction::StopCaching() {} | 123 void FailingHttpTransaction::StopCaching() {} |
124 | 124 |
125 bool FailingHttpTransaction::GetFullRequestHeaders( | 125 bool FailingHttpTransaction::GetFullRequestHeaders( |
126 HttpRequestHeaders* headers) const { | 126 HttpRequestHeaders* headers) const { |
127 return false; | 127 return false; |
128 } | 128 } |
129 | 129 |
130 int64 FailingHttpTransaction::GetTotalReceivedBytes() const { | 130 int64_t FailingHttpTransaction::GetTotalReceivedBytes() const { |
131 return 0; | 131 return 0; |
132 } | 132 } |
133 | 133 |
134 int64_t FailingHttpTransaction::GetTotalSentBytes() const { | 134 int64_t FailingHttpTransaction::GetTotalSentBytes() const { |
135 return 0; | 135 return 0; |
136 } | 136 } |
137 | 137 |
138 void FailingHttpTransaction::DoneReading() { | 138 void FailingHttpTransaction::DoneReading() { |
139 NOTREACHED(); | 139 NOTREACHED(); |
140 } | 140 } |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 | 214 |
215 HttpCache* FailingHttpTransactionFactory::GetCache() { | 215 HttpCache* FailingHttpTransactionFactory::GetCache() { |
216 return NULL; | 216 return NULL; |
217 } | 217 } |
218 | 218 |
219 HttpNetworkSession* FailingHttpTransactionFactory::GetSession() { | 219 HttpNetworkSession* FailingHttpTransactionFactory::GetSession() { |
220 return session_; | 220 return session_; |
221 } | 221 } |
222 | 222 |
223 } // namespace net | 223 } // namespace net |
OLD | NEW |