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

Side by Side Diff: net/http/http_transaction.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: Formatting nits 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_H_ 5 #ifndef NET_HTTP_HTTP_TRANSACTION_H_
6 #define NET_HTTP_HTTP_TRANSACTION_H_ 6 #define NET_HTTP_HTTP_TRANSACTION_H_
7 7
8 #include "net/base/completion_callback.h" 8 #include "net/base/completion_callback.h"
9 #include "net/base/load_states.h" 9 #include "net/base/load_states.h"
10 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 virtual bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const = 0; 137 virtual bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const = 0;
138 138
139 // Called when the priority of the parent job changes. 139 // Called when the priority of the parent job changes.
140 virtual void SetPriority(RequestPriority priority) = 0; 140 virtual void SetPriority(RequestPriority priority) = 0;
141 141
142 // Set the WebSocketHandshakeStreamBase::CreateHelper to be used for the 142 // Set the WebSocketHandshakeStreamBase::CreateHelper to be used for the
143 // request. Only relevant to WebSocket transactions. Must be called before 143 // request. Only relevant to WebSocket transactions. Must be called before
144 // Start(). Ownership of |create_helper| remains with the caller. 144 // Start(). Ownership of |create_helper| remains with the caller.
145 virtual void SetWebSocketHandshakeStreamCreateHelper( 145 virtual void SetWebSocketHandshakeStreamCreateHelper(
146 WebSocketHandshakeStreamBase::CreateHelper* create_helper) = 0; 146 WebSocketHandshakeStreamBase::CreateHelper* create_helper) = 0;
147
148 // Set the callback to receive notification just before network use.
149 virtual void SetBeforeNetworkStartCallback(
150 const base::Callback<void(bool*)>& callback) = 0;
151
152 // Resumes the transaction after being deferred.
153 virtual int ResumeNetworkStart() = 0;
147 }; 154 };
148 155
149 } // namespace net 156 } // namespace net
150 157
151 #endif // NET_HTTP_HTTP_TRANSACTION_H_ 158 #endif // NET_HTTP_HTTP_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698