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