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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 int RestartWithCertificate(X509Certificate* client_cert, | 43 int RestartWithCertificate(X509Certificate* client_cert, |
44 const CompletionCallback& callback) override; | 44 const CompletionCallback& callback) override; |
45 int RestartWithAuth(const AuthCredentials& credentials, | 45 int RestartWithAuth(const AuthCredentials& credentials, |
46 const CompletionCallback& callback) override; | 46 const CompletionCallback& callback) override; |
47 bool IsReadyToRestartForAuth() override; | 47 bool IsReadyToRestartForAuth() override; |
48 int Read(IOBuffer* buf, | 48 int Read(IOBuffer* buf, |
49 int buf_len, | 49 int buf_len, |
50 const CompletionCallback& callback) override; | 50 const CompletionCallback& callback) override; |
51 void StopCaching() override; | 51 void StopCaching() override; |
52 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const override; | 52 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const override; |
53 int64 GetTotalReceivedBytes() const override; | 53 int64_t GetTotalReceivedBytes() const override; |
54 int64_t GetTotalSentBytes() const override; | 54 int64_t GetTotalSentBytes() const override; |
55 void DoneReading() override; | 55 void DoneReading() override; |
56 const HttpResponseInfo* GetResponseInfo() const override; | 56 const HttpResponseInfo* GetResponseInfo() const override; |
57 LoadState GetLoadState() const override; | 57 LoadState GetLoadState() const override; |
58 UploadProgress GetUploadProgress() const override; | 58 UploadProgress GetUploadProgress() const override; |
59 void SetQuicServerInfo(QuicServerInfo* quic_server_info) override; | 59 void SetQuicServerInfo(QuicServerInfo* quic_server_info) override; |
60 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; | 60 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; |
61 void SetPriority(RequestPriority priority) override; | 61 void SetPriority(RequestPriority priority) override; |
62 void SetWebSocketHandshakeStreamCreateHelper( | 62 void SetWebSocketHandshakeStreamCreateHelper( |
63 WebSocketHandshakeStreamBase::CreateHelper* create_helper) override; | 63 WebSocketHandshakeStreamBase::CreateHelper* create_helper) override; |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 HttpCache* FailingHttpTransactionFactory::GetCache() { | 200 HttpCache* FailingHttpTransactionFactory::GetCache() { |
201 return NULL; | 201 return NULL; |
202 } | 202 } |
203 | 203 |
204 HttpNetworkSession* FailingHttpTransactionFactory::GetSession() { | 204 HttpNetworkSession* FailingHttpTransactionFactory::GetSession() { |
205 return session_; | 205 return session_; |
206 } | 206 } |
207 | 207 |
208 } // namespace net | 208 } // namespace net |
209 | 209 |
OLD | NEW |