Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / components / cronet / url_request_context_config.h
index fef8901..298939e 100644 (file)
@@ -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;