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

Unified Diff: components/cronet/ios/cronet_environment.h

Issue 2273403003: Moving gRPC support interfaces out of cronet and into a new component. (Closed)
Patch Set: Add DEPS Created 4 years, 2 months 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/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_;

Powered by Google App Engine
This is Rietveld 408576698