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_; |