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

Unified Diff: net/http/http_network_layer.h

Issue 7043007: Kill URLRequestJobTracker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge. Created 9 years, 7 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 | « net/http/http_cache.cc ('k') | net/http/http_network_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_layer.h
diff --git a/net/http/http_network_layer.h b/net/http/http_network_layer.h
index 35652c35ecb475400d334461b330f60c0f59e33e..448ae8d01c1736ee078b4881e2042e3a3f58ef23 100644
--- a/net/http/http_network_layer.h
+++ b/net/http/http_network_layer.h
@@ -10,6 +10,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "base/system_monitor/system_monitor.h"
#include "base/threading/non_thread_safe.h"
#include "net/base/net_api.h"
#include "net/http/http_transaction_factory.h"
@@ -31,6 +32,7 @@ class SSLConfigService;
class SSLHostInfoFactory;
class NET_API HttpNetworkLayer : public HttpTransactionFactory,
+ public base::SystemMonitor::PowerObserver,
NON_EXPORTED_BASE(public base::NonThreadSafe) {
public:
// Construct a HttpNetworkLayer with an existing HttpNetworkSession which
@@ -60,7 +62,10 @@ class NET_API HttpNetworkLayer : public HttpTransactionFactory,
virtual int CreateTransaction(scoped_ptr<HttpTransaction>* trans);
virtual HttpCache* GetCache();
virtual HttpNetworkSession* GetSession();
- virtual void Suspend(bool suspend);
+
+ // base::SystemMonitor::PowerObserver methods:
+ virtual void OnSuspend();
+ virtual void OnResume();
private:
const scoped_refptr<HttpNetworkSession> session_;
« no previous file with comments | « net/http/http_cache.cc ('k') | net/http/http_network_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698