Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: components/cronet/url_request_context_config.h

Issue 586143002: Initial implementation of Cronet Async API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/cronet/url_request_context_config.h
diff --git a/components/cronet/url_request_context_config.h b/components/cronet/url_request_context_config.h
index fef890177dcafa0446f6ce4f8e451f7e2f0f1a14..298939e3723ccba7ef8398b580533fe5f258bb35 100644
--- a/components/cronet/url_request_context_config.h
+++ b/components/cronet/url_request_context_config.h
@@ -43,6 +43,9 @@ struct URLRequestContextConfig {
URLRequestContextConfig();
~URLRequestContextConfig();
+ // Load config values from JSON format.
+ bool LoadFromJSON(const std::string& config_string);
+
// Configure |context_builder| based on |this|.
void ConfigureURLRequestContextBuilder(
net::URLRequestContextBuilder* context_builder);
@@ -62,6 +65,8 @@ struct URLRequestContextConfig {
int http_cache_max_size;
// Storage path for http cache and cookie storage.
std::string storage_path;
+ // User-Agent request header field.
+ std::string user_agent;
// App-provided list of servers that support QUIC.
ScopedVector<QuicHint> quic_hints;

Powered by Google App Engine
This is Rietveld 408576698