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/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 28 matching lines...) Expand all Loading... | |
39 // Enable the spdy protocol. | 39 // Enable the spdy protocol. |
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 // Enable the quic protocol. | |
50 // Without calling this function, QUIC is disabled. If this flag is present | |
51 // then any requests to the specified port will be fetched via QUIC. | |
52 static void EnableQuic(const std::string& port); | |
willchan no longer on Chromium
2012/11/22 03:04:53
Sorry, I'm trying to draw a hardline and eliminate
Ryan Hamilton
2012/11/22 23:08:40
Done. I'd also be happy to audit the use of stati
| |
53 | |
49 // HttpTransactionFactory methods: | 54 // HttpTransactionFactory methods: |
50 virtual int CreateTransaction(scoped_ptr<HttpTransaction>* trans, | 55 virtual int CreateTransaction(scoped_ptr<HttpTransaction>* trans, |
51 HttpTransactionDelegate* delegate) OVERRIDE; | 56 HttpTransactionDelegate* delegate) OVERRIDE; |
52 virtual HttpCache* GetCache() OVERRIDE; | 57 virtual HttpCache* GetCache() OVERRIDE; |
53 virtual HttpNetworkSession* GetSession() OVERRIDE; | 58 virtual HttpNetworkSession* GetSession() OVERRIDE; |
54 | 59 |
55 // base::SystemMonitor::PowerObserver methods: | 60 // base::SystemMonitor::PowerObserver methods: |
56 virtual void OnSuspend() OVERRIDE; | 61 virtual void OnSuspend() OVERRIDE; |
57 virtual void OnResume() OVERRIDE; | 62 virtual void OnResume() OVERRIDE; |
58 | 63 |
59 private: | 64 private: |
60 const scoped_refptr<HttpNetworkSession> session_; | 65 const scoped_refptr<HttpNetworkSession> session_; |
61 bool suspended_; | 66 bool suspended_; |
62 }; | 67 }; |
63 | 68 |
64 } // namespace net | 69 } // namespace net |
65 | 70 |
66 #endif // NET_HTTP_HTTP_NETWORK_LAYER_H_ | 71 #endif // NET_HTTP_HTTP_NETWORK_LAYER_H_ |
OLD | NEW |