| Index: components/cronet/ios/cronet_environment.h
|
| diff --git a/components/cronet/ios/cronet_environment.h b/components/cronet/ios/cronet_environment.h
|
| index 30d8564f4ba7bb769b660abb8025943bf13be564..05722abf44027e342ae3c4f3923f4a367b08d7e9 100644
|
| --- a/components/cronet/ios/cronet_environment.h
|
| +++ b/components/cronet/ios/cronet_environment.h
|
| @@ -17,6 +17,7 @@
|
| #include "net/cert/cert_verifier.h"
|
| #include "net/url_request/url_request.h"
|
| #include "net/url_request/url_request_context.h"
|
| +#include "net/url_request/url_request_context_getter.h"
|
|
|
| class JsonPrefStore;
|
|
|
| @@ -81,18 +82,17 @@ class CronetEnvironment {
|
| ssl_key_log_file_name_ = ssl_key_log_file_name;
|
| }
|
|
|
| - net::URLRequestContext* GetURLRequestContext() const;
|
| + // Return the URLRequestContextGetter associated with this object.
|
| + net::URLRequestContextGetter* GetURLRequestContextGetter();
|
|
|
| - bool IsOnNetworkThread();
|
| + private:
|
| + // Performs initialization tasks that must happen on the network thread.
|
| + void InitializeOnNetworkThread();
|
|
|
| // Runs a closure on the network thread.
|
| void PostToNetworkThread(const tracked_objects::Location& from_here,
|
| const base::Closure& task);
|
|
|
| - private:
|
| - // Performs initialization tasks that must happen on the network thread.
|
| - void InitializeOnNetworkThread();
|
| -
|
| // Runs a closure on the file user blocking thread.
|
| void PostToFileUserBlockingThread(const tracked_objects::Location& from_here,
|
| const base::Closure& task);
|
| @@ -124,6 +124,7 @@ class CronetEnvironment {
|
| std::unique_ptr<net::ProxyConfigService> proxy_config_service_;
|
| std::unique_ptr<net::HttpServerProperties> http_server_properties_;
|
| std::unique_ptr<net::URLRequestContext> main_context_;
|
| + scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
|
| std::string user_agent_product_name_;
|
| std::unique_ptr<net::NetLog> net_log_;
|
| std::unique_ptr<net::WriteToFileNetLogObserver> net_log_observer_;
|
|
|