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

Unified Diff: net/http/http_network_layer.h

Issue 7043007: Kill URLRequestJobTracker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows build. 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
Index: net/http/http_network_layer.h
diff --git a/net/http/http_network_layer.h b/net/http/http_network_layer.h
index f4843fe746f451e93658b8c1b7b38958ce8f145e..bb277d4aab8881adee16c2eb9166fab1042487fb 100644
--- a/net/http/http_network_layer.h
+++ b/net/http/http_network_layer.h
@@ -11,6 +11,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/threading/non_thread_safe.h"
+#include "base/system_monitor/system_monitor.h"
#include "net/http/http_transaction_factory.h"
namespace net {
@@ -30,6 +31,7 @@ class SSLConfigService;
class SSLHostInfoFactory;
class HttpNetworkLayer : public HttpTransactionFactory,
+ public base::SystemMonitor::PowerObserver,
public base::NonThreadSafe {
public:
// Construct a HttpNetworkLayer with an existing HttpNetworkSession which
@@ -59,7 +61,10 @@ class 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_;

Powered by Google App Engine
This is Rietveld 408576698