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

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: Potential fix of a memory leak due to a reference cycle. 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.h » ('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..56a2510acc1aeb788ebe0965ef115078537d6e1b 100644
--- a/net/http/http_cache_transaction.h
+++ b/net/http/http_cache_transaction.h
@@ -131,6 +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 BeforeNetworkStartCallback& callback) OVERRIDE;
+ virtual int ResumeNetworkStart() OVERRIDE;
private:
static const size_t kNumValidationHeaders = 2;
@@ -438,6 +441,8 @@ class HttpCache::Transaction : public HttpTransaction {
WebSocketHandshakeStreamBase::CreateHelper*
websocket_handshake_stream_base_create_helper_;
+ base::Callback<void(bool*)> before_network_start_callback_;
mmenke 2014/01/07 19:44:05 base::Callback<void(bool*)> -> BeforeNetworkStartC
jkarlin 2014/01/07 20:10:03 Done. And three other places I missed before.
+
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.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698