 Chromium Code Reviews
 Chromium Code Reviews Issue 11572039:
  Make HttpNetworkLayer subscribe to power events on Windows.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src
    
  
    Issue 11572039:
  Make HttpNetworkLayer subscribe to power events on Windows.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src| Index: net/http/http_network_layer.h | 
| diff --git a/net/http/http_network_layer.h b/net/http/http_network_layer.h | 
| index 52e5ad602235f976842b063196231afdd23dca9b..f558453687926856d4680fa52ad40c1c2e6f8c04 100644 | 
| --- a/net/http/http_network_layer.h | 
| +++ b/net/http/http_network_layer.h | 
| @@ -9,7 +9,6 @@ | 
| #include "base/memory/ref_counted.h" | 
| 
pauljensen
2012/12/14 14:19:31
While you're in this file, you could add:
#include
 
Philippe
2012/12/14 14:34:22
Sure, done.
 | 
| #include "base/memory/scoped_ptr.h" | 
| -#include "base/system_monitor/system_monitor.h" | 
| #include "base/threading/non_thread_safe.h" | 
| #include "net/base/net_export.h" | 
| #include "net/http/http_transaction_factory.h" | 
| @@ -20,7 +19,6 @@ class HttpNetworkSession; | 
| class NET_EXPORT HttpNetworkLayer | 
| : public HttpTransactionFactory, | 
| - public base::SystemMonitor::PowerObserver, | 
| NON_EXPORTED_BASE(public base::NonThreadSafe) { | 
| public: | 
| // Construct a HttpNetworkLayer with an existing HttpNetworkSession which | 
| @@ -46,13 +44,8 @@ class NET_EXPORT HttpNetworkLayer | 
| virtual HttpCache* GetCache() OVERRIDE; | 
| virtual HttpNetworkSession* GetSession() OVERRIDE; | 
| - // base::SystemMonitor::PowerObserver methods: | 
| - virtual void OnSuspend() OVERRIDE; | 
| - virtual void OnResume() OVERRIDE; | 
| - | 
| private: | 
| const scoped_refptr<HttpNetworkSession> session_; | 
| 
pauljensen
2012/12/14 14:19:31
While you're in this file, you could add:
DISALLOW
 
Philippe
2012/12/14 14:34:22
Done.
 | 
| - bool suspended_; | 
| }; | 
| } // namespace net |