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

Unified Diff: net/http/http_cache.h

Issue 182993003: Add the ability for DevTools to wrap network transactions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 6 years, 8 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
Index: net/http/http_cache.h
diff --git a/net/http/http_cache.h b/net/http/http_cache.h
index dd9d0cdfcae36cfcbff10cbbeacc6874179768c9..250f81ce4fe3463f3f154632b72e9d305a6533f9 100644
--- a/net/http/http_cache.h
+++ b/net/http/http_cache.h
@@ -138,7 +138,8 @@ class NET_EXPORT HttpCache : public HttpTransactionFactory,
// destroyed.
HttpCache(HttpTransactionFactory* network_layer,
rvargas (doing something else) 2014/04/29 23:40:45 This constructor is intended for unit tests but it
eustas 2014/05/07 13:47:17 It is possible to remove constructor that takes pa
rvargas (doing something else) 2014/05/07 20:22:57 I don't have an issue with tests using the same co
NetLog* net_log,
- BackendFactory* backend_factory);
+ BackendFactory* backend_factory,
+ bool setup_network_session);
rvargas (doing something else) 2014/04/29 23:40:45 It is not clear how a caller should know what to p
eustas 2014/05/07 13:47:17 Reverted.
virtual ~HttpCache();
@@ -354,6 +355,10 @@ class NET_EXPORT HttpCache : public HttpTransactionFactory,
bool RemovePendingTransactionFromPendingOp(PendingOp* pending_op,
Transaction* trans);
+ // Instantiates and sets QUIC server info factory. Should be invoked only
+ // once for every network session.
+ void SetupNetworkSession(HttpNetworkSession* session);
rvargas (doing something else) 2014/04/29 23:40:45 If what this does is to configure quick server inf
eustas 2014/05/07 13:47:17 Done.
+
// Resumes processing the pending list of |entry|.
void ProcessPendingQueue(ActiveEntry* entry);
@@ -389,7 +394,7 @@ class NET_EXPORT HttpCache : public HttpTransactionFactory,
Mode mode_;
- const scoped_ptr<QuicServerInfoFactoryAdaptor> quic_server_info_factory_;
+ scoped_ptr<QuicServerInfoFactoryAdaptor> quic_server_info_factory_;
scoped_ptr<HttpTransactionFactory> network_layer_;

Powered by Google App Engine
This is Rietveld 408576698