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