| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ | 5 #ifndef COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ |
| 6 #define COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ | 6 #define COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // Expiration date for the pins. | 66 // Expiration date for the pins. |
| 67 const base::Time expiration_date; | 67 const base::Time expiration_date; |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 DISALLOW_COPY_AND_ASSIGN(Pkp); | 70 DISALLOW_COPY_AND_ASSIGN(Pkp); |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 URLRequestContextConfig( | 73 URLRequestContextConfig( |
| 74 // Enable QUIC. | 74 // Enable QUIC. |
| 75 bool enable_quic, | 75 bool enable_quic, |
| 76 // QUIC User Agent ID. |
| 77 const std::string& quic_user_agent_id, |
| 76 // Enable SPDY. | 78 // Enable SPDY. |
| 77 bool enable_spdy, | 79 bool enable_spdy, |
| 78 // Enable SDCH. | 80 // Enable SDCH. |
| 79 bool enable_sdch, | 81 bool enable_sdch, |
| 80 // Type of http cache. | 82 // Type of http cache. |
| 81 HttpCacheType http_cache, | 83 HttpCacheType http_cache, |
| 82 // Max size of http cache in bytes. | 84 // Max size of http cache in bytes. |
| 83 int http_cache_max_size, | 85 int http_cache_max_size, |
| 84 // Disable caching for HTTP responses. Other information may be stored in | 86 // Disable caching for HTTP responses. Other information may be stored in |
| 85 // the cache. | 87 // the cache. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 102 scoped_ptr<net::CertVerifier> mock_cert_verifier); | 104 scoped_ptr<net::CertVerifier> mock_cert_verifier); |
| 103 ~URLRequestContextConfig(); | 105 ~URLRequestContextConfig(); |
| 104 | 106 |
| 105 // Configure |context_builder| based on |this|. | 107 // Configure |context_builder| based on |this|. |
| 106 void ConfigureURLRequestContextBuilder( | 108 void ConfigureURLRequestContextBuilder( |
| 107 net::URLRequestContextBuilder* context_builder, | 109 net::URLRequestContextBuilder* context_builder, |
| 108 net::NetLog* net_log); | 110 net::NetLog* net_log); |
| 109 | 111 |
| 110 // Enable QUIC. | 112 // Enable QUIC. |
| 111 const bool enable_quic; | 113 const bool enable_quic; |
| 114 // QUIC User Agent ID. |
| 115 const std::string quic_user_agent_id; |
| 112 // Enable SPDY. | 116 // Enable SPDY. |
| 113 const bool enable_spdy; | 117 const bool enable_spdy; |
| 114 // Enable SDCH. | 118 // Enable SDCH. |
| 115 const bool enable_sdch; | 119 const bool enable_sdch; |
| 116 // Type of http cache. | 120 // Type of http cache. |
| 117 const HttpCacheType http_cache; | 121 const HttpCacheType http_cache; |
| 118 // Max size of http cache in bytes. | 122 // Max size of http cache in bytes. |
| 119 const int http_cache_max_size; | 123 const int http_cache_max_size; |
| 120 // Disable caching for HTTP responses. Other information may be stored in | 124 // Disable caching for HTTP responses. Other information may be stored in |
| 121 // the cache. | 125 // the cache. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 146 // The list of public key pins. | 150 // The list of public key pins. |
| 147 ScopedVector<Pkp> pkp_list; | 151 ScopedVector<Pkp> pkp_list; |
| 148 | 152 |
| 149 private: | 153 private: |
| 150 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfig); | 154 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfig); |
| 151 }; | 155 }; |
| 152 | 156 |
| 153 } // namespace cronet | 157 } // namespace cronet |
| 154 | 158 |
| 155 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ | 159 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ |
| OLD | NEW |