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

Side by Side Diff: net/http/http_transaction_unittest.h

Issue 122453002: Allows deferral of a URLRequest just before talking to the network, at (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: The second set of mmenke's comments. Created 6 years, 11 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 (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 #ifndef NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_ 5 #ifndef NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_
6 #define NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_ 6 #define NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_
7 7
8 #include "net/http/http_transaction.h" 8 #include "net/http/http_transaction.h"
9 9
10 #include <string> 10 #include <string>
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 virtual net::UploadProgress GetUploadProgress() const OVERRIDE; 204 virtual net::UploadProgress GetUploadProgress() const OVERRIDE;
205 205
206 virtual bool GetLoadTimingInfo( 206 virtual bool GetLoadTimingInfo(
207 net::LoadTimingInfo* load_timing_info) const OVERRIDE; 207 net::LoadTimingInfo* load_timing_info) const OVERRIDE;
208 208
209 virtual void SetPriority(net::RequestPriority priority) OVERRIDE; 209 virtual void SetPriority(net::RequestPriority priority) OVERRIDE;
210 210
211 virtual void SetWebSocketHandshakeStreamCreateHelper( 211 virtual void SetWebSocketHandshakeStreamCreateHelper(
212 CreateHelper* create_helper) OVERRIDE; 212 CreateHelper* create_helper) OVERRIDE;
213 213
214 virtual void SetBeforeNetworkStartCallback(
215 const BeforeNetworkStartCallback& callback) OVERRIDE;
216
217 virtual int ResumeNetworkStart() OVERRIDE;
218
214 CreateHelper* websocket_handshake_stream_create_helper() { 219 CreateHelper* websocket_handshake_stream_create_helper() {
215 return websocket_handshake_stream_create_helper_; 220 return websocket_handshake_stream_create_helper_;
216 } 221 }
217 net::RequestPriority priority() const { return priority_; } 222 net::RequestPriority priority() const { return priority_; }
218 223
219 private: 224 private:
220 int StartInternal(const net::HttpRequestInfo* request, 225 int StartInternal(const net::HttpRequestInfo* request,
221 const net::CompletionCallback& callback, 226 const net::CompletionCallback& callback,
222 const net::BoundNetLog& net_log); 227 const net::BoundNetLog& net_log);
223 void CallbackLater(const net::CompletionCallback& callback, int result); 228 void CallbackLater(const net::CompletionCallback& callback, int result);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 base::WeakPtr<MockNetworkTransaction> last_transaction_; 290 base::WeakPtr<MockNetworkTransaction> last_transaction_;
286 }; 291 };
287 292
288 //----------------------------------------------------------------------------- 293 //-----------------------------------------------------------------------------
289 // helpers 294 // helpers
290 295
291 // read the transaction completely 296 // read the transaction completely
292 int ReadTransaction(net::HttpTransaction* trans, std::string* result); 297 int ReadTransaction(net::HttpTransaction* trans, std::string* result);
293 298
294 #endif // NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_ 299 #endif // NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698