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

Unified Diff: net/http/http_cache_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/http/http_cache_transaction.cc » ('j') | net/http/http_network_transaction.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache_transaction.h
diff --git a/net/http/http_cache_transaction.h b/net/http/http_cache_transaction.h
index 9c69817f98c5c5dde45e1d62b5fb85316936c220..7bbad0755f7b72818cf5cc6a5f025575ebceea4c 100644
--- a/net/http/http_cache_transaction.h
+++ b/net/http/http_cache_transaction.h
@@ -131,7 +131,9 @@ class HttpCache::Transaction : public HttpTransaction {
virtual void SetPriority(RequestPriority priority) OVERRIDE;
virtual void SetWebSocketHandshakeStreamCreateHelper(
net::WebSocketHandshakeStreamBase::CreateHelper* create_helper) OVERRIDE;
-
+ virtual void SetBeforeNetworkStartCallback(
+ const base::Callback<void(bool*)>& callback) OVERRIDE;
mmenke 2014/01/07 15:26:23 Should make the callback a typedef with a comment
jkarlin 2014/01/07 16:19:32 Done.
+ virtual int ResumeNetworkStart() OVERRIDE;
private:
mmenke 2014/01/07 15:26:23 nit: Blank line before private.
jkarlin 2014/01/07 16:19:32 Done.
static const size_t kNumValidationHeaders = 2;
// Helper struct to pair a header name with its value, for
@@ -438,6 +440,8 @@ class HttpCache::Transaction : public HttpTransaction {
WebSocketHandshakeStreamBase::CreateHelper*
websocket_handshake_stream_base_create_helper_;
+ base::Callback<void(bool*)> before_network_start_callback_;
+
DISALLOW_COPY_AND_ASSIGN(Transaction);
};
« no previous file with comments | « no previous file | net/http/http_cache_transaction.cc » ('j') | net/http/http_network_transaction.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698