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

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

Issue 2502683003: [Cronet] change InitializeOnNetworkThread to use URLRequestContextBuilder (Closed)
Patch Set: Sync Created 4 years 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
« no previous file with comments | « components/cronet/ios/Cronet.mm ('k') | components/cronet/ios/cronet_environment.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/ios/cronet_environment.h
diff --git a/components/cronet/ios/cronet_environment.h b/components/cronet/ios/cronet_environment.h
index 87fc862318c0aeaeee6feeed6f1d773c5f2c7166..f6446c7ae3ec965c136c5ae6f8d0e442b2e44e82 100644
--- a/components/cronet/ios/cronet_environment.h
+++ b/components/cronet/ios/cronet_environment.h
@@ -16,12 +16,9 @@
#include "base/threading/thread.h"
#include "components/cronet/url_request_context_config.h"
#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;
-
namespace base {
class WaitableEvent;
} // namespace base
@@ -29,7 +26,6 @@ class WaitableEvent;
namespace net {
class CookieStore;
class NetLog;
-class ProxyConfigService;
class WriteToFileNetLogObserver;
} // namespace net
@@ -79,8 +75,9 @@ class CronetEnvironment {
accept_language_ = accept_language;
}
- void set_cert_verifier(std::unique_ptr<net::CertVerifier> cert_verifier) {
- cert_verifier_ = std::move(cert_verifier);
+ void set_mock_cert_verifier(
+ std::unique_ptr<net::CertVerifier> mock_cert_verifier) {
+ mock_cert_verifier_ = std::move(mock_cert_verifier);
}
void SetHostResolverRules(const std::string& host_resolver_rules);
@@ -133,10 +130,7 @@ class CronetEnvironment {
std::unique_ptr<base::Thread> file_thread_;
std::unique_ptr<base::Thread> file_user_blocking_thread_;
scoped_refptr<base::SequencedTaskRunner> pref_store_worker_pool_;
- scoped_refptr<JsonPrefStore> net_pref_store_;
- std::unique_ptr<net::CertVerifier> cert_verifier_;
- std::unique_ptr<net::ProxyConfigService> proxy_config_service_;
- std::unique_ptr<net::HttpServerProperties> http_server_properties_;
+ std::unique_ptr<net::CertVerifier> mock_cert_verifier_;
std::unique_ptr<net::CookieStore> cookie_store_;
std::unique_ptr<net::URLRequestContext> main_context_;
scoped_refptr<net::URLRequestContextGetter> main_context_getter_;
« no previous file with comments | « components/cronet/ios/Cronet.mm ('k') | components/cronet/ios/cronet_environment.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698