| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 // Enable the spdy protocol. | 48 // Enable the spdy protocol. |
| 49 // Without calling this function, SPDY is disabled. The mode can be: | 49 // Without calling this function, SPDY is disabled. The mode can be: |
| 50 // "" : (default) SSL and compression are enabled, flow | 50 // "" : (default) SSL and compression are enabled, flow |
| 51 // control disabled. | 51 // control disabled. |
| 52 // "no-ssl" : disables SSL. | 52 // "no-ssl" : disables SSL. |
| 53 // "no-compress" : disables compression. | 53 // "no-compress" : disables compression. |
| 54 // "flow-control": enables flow control. | 54 // "flow-control": enables flow control. |
| 55 // "none" : disables both SSL and compression. | 55 // "none" : disables both SSL and compression. |
| 56 static void EnableSpdy(const std::string& mode); | 56 static void EnableSpdy(const std::string& mode); |
| 57 | 57 |
| 58 // Enable the SCTP transport protocol. |
| 59 // Without calling this function, SCTP is disabled. |
| 60 static void EnableSctp(const std::string& sctp_mode); |
| 61 |
| 58 // HttpTransactionFactory methods: | 62 // HttpTransactionFactory methods: |
| 59 virtual int CreateTransaction(scoped_ptr<HttpTransaction>* trans); | 63 virtual int CreateTransaction(scoped_ptr<HttpTransaction>* trans); |
| 60 virtual HttpCache* GetCache(); | 64 virtual HttpCache* GetCache(); |
| 61 virtual HttpNetworkSession* GetSession(); | 65 virtual HttpNetworkSession* GetSession(); |
| 62 virtual void Suspend(bool suspend); | 66 virtual void Suspend(bool suspend); |
| 63 | 67 |
| 64 private: | 68 private: |
| 65 const scoped_refptr<HttpNetworkSession> session_; | 69 const scoped_refptr<HttpNetworkSession> session_; |
| 66 bool suspended_; | 70 bool suspended_; |
| 67 }; | 71 }; |
| 68 | 72 |
| 69 } // namespace net | 73 } // namespace net |
| 70 | 74 |
| 71 #endif // NET_HTTP_HTTP_NETWORK_LAYER_H_ | 75 #endif // NET_HTTP_HTTP_NETWORK_LAYER_H_ |
| OLD | NEW |