| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 // Without calling this function, SPDY is disabled. The mode can be: | 41 // Without calling this function, SPDY is disabled. The mode can be: |
| 42 // "" : (default) SSL and compression are enabled, flow | 42 // "" : (default) SSL and compression are enabled, flow |
| 43 // control disabled. | 43 // control disabled. |
| 44 // "no-ssl" : disables SSL. | 44 // "no-ssl" : disables SSL. |
| 45 // "no-compress" : disables compression. | 45 // "no-compress" : disables compression. |
| 46 // "flow-control": enables flow control. | 46 // "flow-control": enables flow control. |
| 47 // "none" : disables both SSL and compression. | 47 // "none" : disables both SSL and compression. |
| 48 static void EnableSpdy(const std::string& mode); | 48 static void EnableSpdy(const std::string& mode); |
| 49 | 49 |
| 50 // HttpTransactionFactory methods: | 50 // HttpTransactionFactory methods: |
| 51 virtual int CreateTransaction(scoped_ptr<HttpTransaction>* trans) OVERRIDE; | 51 virtual int CreateTransaction(scoped_ptr<HttpTransaction>* trans, |
| 52 HttpTransactionDelegate* delegate) OVERRIDE; |
| 52 virtual HttpCache* GetCache() OVERRIDE; | 53 virtual HttpCache* GetCache() OVERRIDE; |
| 53 virtual HttpNetworkSession* GetSession() OVERRIDE; | 54 virtual HttpNetworkSession* GetSession() OVERRIDE; |
| 54 | 55 |
| 55 // base::SystemMonitor::PowerObserver methods: | 56 // base::SystemMonitor::PowerObserver methods: |
| 56 virtual void OnSuspend() OVERRIDE; | 57 virtual void OnSuspend() OVERRIDE; |
| 57 virtual void OnResume() OVERRIDE; | 58 virtual void OnResume() OVERRIDE; |
| 58 | 59 |
| 59 private: | 60 private: |
| 60 const scoped_refptr<HttpNetworkSession> session_; | 61 const scoped_refptr<HttpNetworkSession> session_; |
| 61 bool suspended_; | 62 bool suspended_; |
| 62 }; | 63 }; |
| 63 | 64 |
| 64 } // namespace net | 65 } // namespace net |
| 65 | 66 |
| 66 #endif // NET_HTTP_HTTP_NETWORK_LAYER_H_ | 67 #endif // NET_HTTP_HTTP_NETWORK_LAYER_H_ |
| OLD | NEW |