| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_HTTP_HTTP_NETWORK_LAYER_H_ | 5 #ifndef NET_HTTP_HTTP_NETWORK_LAYER_H_ |
| 6 #define NET_HTTP_HTTP_NETWORK_LAYER_H_ | 6 #define NET_HTTP_HTTP_NETWORK_LAYER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" |
| 10 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/system_monitor/system_monitor.h" | 14 #include "base/system_monitor/system_monitor.h" |
| 13 #include "base/threading/non_thread_safe.h" | 15 #include "base/threading/non_thread_safe.h" |
| 14 #include "net/base/net_export.h" | 16 #include "net/base/net_export.h" |
| 15 #include "net/http/http_transaction_factory.h" | 17 #include "net/http/http_transaction_factory.h" |
| 16 | 18 |
| 17 namespace net { | 19 namespace net { |
| 18 | 20 |
| 19 class HttpNetworkSession; | 21 class HttpNetworkSession; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 46 virtual HttpCache* GetCache() OVERRIDE; | 48 virtual HttpCache* GetCache() OVERRIDE; |
| 47 virtual HttpNetworkSession* GetSession() OVERRIDE; | 49 virtual HttpNetworkSession* GetSession() OVERRIDE; |
| 48 | 50 |
| 49 // base::SystemMonitor::PowerObserver methods: | 51 // base::SystemMonitor::PowerObserver methods: |
| 50 virtual void OnSuspend() OVERRIDE; | 52 virtual void OnSuspend() OVERRIDE; |
| 51 virtual void OnResume() OVERRIDE; | 53 virtual void OnResume() OVERRIDE; |
| 52 | 54 |
| 53 private: | 55 private: |
| 54 const scoped_refptr<HttpNetworkSession> session_; | 56 const scoped_refptr<HttpNetworkSession> session_; |
| 55 bool suspended_; | 57 bool suspended_; |
| 58 |
| 59 DISALLOW_COPY_AND_ASSIGN(HttpNetworkLayer); |
| 56 }; | 60 }; |
| 57 | 61 |
| 58 } // namespace net | 62 } // namespace net |
| 59 | 63 |
| 60 #endif // NET_HTTP_HTTP_NETWORK_LAYER_H_ | 64 #endif // NET_HTTP_HTTP_NETWORK_LAYER_H_ |
| OLD | NEW |