Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: net/http/failing_http_transaction_factory.cc

Issue 333113002: Move data reduction proxy to Chrome-Proxy header for authentication (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@flywheel-refactor-net-fake-a-redirect-response-headers-chrome-proxy-auth
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual UploadProgress GetUploadProgress() const OVERRIDE; 56 virtual UploadProgress GetUploadProgress() const OVERRIDE;
57 virtual void SetQuicServerInfo( 57 virtual void SetQuicServerInfo(
58 net::QuicServerInfo* quic_server_info) OVERRIDE; 58 net::QuicServerInfo* quic_server_info) OVERRIDE;
59 virtual bool GetLoadTimingInfo( 59 virtual bool GetLoadTimingInfo(
60 LoadTimingInfo* load_timing_info) const OVERRIDE; 60 LoadTimingInfo* load_timing_info) const OVERRIDE;
61 virtual void SetPriority(RequestPriority priority) OVERRIDE; 61 virtual void SetPriority(RequestPriority priority) OVERRIDE;
62 virtual void SetWebSocketHandshakeStreamCreateHelper( 62 virtual void SetWebSocketHandshakeStreamCreateHelper(
63 WebSocketHandshakeStreamBase::CreateHelper* create_helper) OVERRIDE; 63 WebSocketHandshakeStreamBase::CreateHelper* create_helper) OVERRIDE;
64 virtual void SetBeforeNetworkStartCallback( 64 virtual void SetBeforeNetworkStartCallback(
65 const BeforeNetworkStartCallback& callback) OVERRIDE; 65 const BeforeNetworkStartCallback& callback) OVERRIDE;
66 virtual void SetBeforeProxyHeadersSentCallback(
67 const BeforeProxyHeadersSentCallback& callback) OVERRIDE;
66 virtual int ResumeNetworkStart() OVERRIDE; 68 virtual int ResumeNetworkStart() OVERRIDE;
67 69
68 private: 70 private:
69 Error error_; 71 Error error_;
70 }; 72 };
71 73
72 FailingHttpTransaction::FailingHttpTransaction(Error error) : error_(error) { 74 FailingHttpTransaction::FailingHttpTransaction(Error error) : error_(error) {
73 DCHECK_LT(error, OK); 75 DCHECK_LT(error, OK);
74 } 76 }
75 77
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 151
150 void FailingHttpTransaction::SetWebSocketHandshakeStreamCreateHelper( 152 void FailingHttpTransaction::SetWebSocketHandshakeStreamCreateHelper(
151 WebSocketHandshakeStreamBase::CreateHelper* create_helper) { 153 WebSocketHandshakeStreamBase::CreateHelper* create_helper) {
152 NOTREACHED(); 154 NOTREACHED();
153 } 155 }
154 156
155 void FailingHttpTransaction::SetBeforeNetworkStartCallback( 157 void FailingHttpTransaction::SetBeforeNetworkStartCallback(
156 const BeforeNetworkStartCallback& callback) { 158 const BeforeNetworkStartCallback& callback) {
157 } 159 }
158 160
161 void FailingHttpTransaction::SetBeforeProxyHeadersSentCallback(
162 const BeforeProxyHeadersSentCallback& callback) {
163 }
164
159 int FailingHttpTransaction::ResumeNetworkStart() { 165 int FailingHttpTransaction::ResumeNetworkStart() {
160 NOTREACHED(); 166 NOTREACHED();
161 return ERR_FAILED; 167 return ERR_FAILED;
162 } 168 }
163 169
164 } // namespace 170 } // namespace
165 171
166 FailingHttpTransactionFactory::FailingHttpTransactionFactory( 172 FailingHttpTransactionFactory::FailingHttpTransactionFactory(
167 HttpNetworkSession* session, 173 HttpNetworkSession* session,
168 Error error) : session_(session), error_(error) { 174 Error error) : session_(session), error_(error) {
(...skipping 13 matching lines...) Expand all
182 HttpCache* FailingHttpTransactionFactory::GetCache() { 188 HttpCache* FailingHttpTransactionFactory::GetCache() {
183 return NULL; 189 return NULL;
184 } 190 }
185 191
186 HttpNetworkSession* FailingHttpTransactionFactory::GetSession() { 192 HttpNetworkSession* FailingHttpTransactionFactory::GetSession() {
187 return session_; 193 return session_;
188 } 194 }
189 195
190 } // namespace net 196 } // namespace net
191 197
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698