| 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/json/json_value_converter.h" | 10 #include "base/json/json_value_converter.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 bool enable_quic; | 55 bool enable_quic; |
| 56 // Enable SPDY. | 56 // Enable SPDY. |
| 57 bool enable_spdy; | 57 bool enable_spdy; |
| 58 // Type of http cache: "HTTP_CACHE_DISABLED", "HTTP_CACHE_DISK" or | 58 // Type of http cache: "HTTP_CACHE_DISABLED", "HTTP_CACHE_DISK" or |
| 59 // "HTTP_CACHE_IN_MEMORY". | 59 // "HTTP_CACHE_IN_MEMORY". |
| 60 std::string http_cache; | 60 std::string http_cache; |
| 61 // Max size of http cache in bytes. | 61 // Max size of http cache in bytes. |
| 62 int http_cache_max_size; | 62 int http_cache_max_size; |
| 63 // Storage path for http cache and cookie storage. | 63 // Storage path for http cache and cookie storage. |
| 64 std::string storage_path; | 64 std::string storage_path; |
| 65 // User-Agent request header field. |
| 66 std::string user_agent; |
| 65 // App-provided list of servers that support QUIC. | 67 // App-provided list of servers that support QUIC. |
| 66 ScopedVector<QuicHint> quic_hints; | 68 ScopedVector<QuicHint> quic_hints; |
| 67 | 69 |
| 68 private: | 70 private: |
| 69 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfig); | 71 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfig); |
| 70 }; | 72 }; |
| 71 | 73 |
| 72 } // namespace cronet | 74 } // namespace cronet |
| 73 | 75 |
| 74 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ | 76 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ |
| OLD | NEW |