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

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

Issue 2568883002: [cronet] Add member for QUIC user agent ID, with getter and setter. (Closed)
Patch Set: per #6 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 | « no previous file | 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 f6446c7ae3ec965c136c5ae6f8d0e442b2e44e82..874afb0901b5ef0b4d955bb431b657d29eb5f28e 100644
--- a/components/cronet/ios/cronet_environment.h
+++ b/components/cronet/ios/cronet_environment.h
@@ -12,8 +12,10 @@
#include "base/files/file_path.h"
#include "base/macros.h"
#include "base/message_loop/message_loop.h"
+#include "base/strings/sys_string_conversions.h"
#include "base/synchronization/waitable_event.h"
#include "base/threading/thread.h"
+#include "components/cronet/ios/version.h"
#include "components/cronet/url_request_context_config.h"
#include "net/cert/cert_verifier.h"
#include "net/url_request/url_request_context.h"
@@ -71,6 +73,10 @@ class CronetEnvironment {
bool http2_enabled() const { return http2_enabled_; }
bool quic_enabled() const { return quic_enabled_; }
+ void set_quic_user_agent_id(const std::string& quic_user_agent_id) {
+ quic_user_agent_id_ = quic_user_agent_id;
+ }
+
void set_accept_language(const std::string& accept_language) {
accept_language_ = accept_language;
}
@@ -118,8 +124,11 @@ class CronetEnvironment {
void SetHostResolverRulesOnNetworkThread(const std::string& rules,
base::WaitableEvent* event);
+ std::string getDefaultQuicUserAgentId() const;
+
bool http2_enabled_;
bool quic_enabled_;
+ std::string quic_user_agent_id_;
std::string accept_language_;
std::string ssl_key_log_file_name_;
« no previous file with comments | « no previous file | components/cronet/ios/cronet_environment.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698