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

Unified Diff: net/url_request/url_request_context.h

Issue 2546213003: Implement net/ support for Android's NetworkSecurityPolicy (Closed)
Patch Set: 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
Index: net/url_request/url_request_context.h
diff --git a/net/url_request/url_request_context.h b/net/url_request/url_request_context.h
index 0158d9aca17282fb5153f318f65d596a3c5fb6ef..05888a4bf308d729c7426374752afab8ab40d7e8 100644
--- a/net/url_request/url_request_context.h
+++ b/net/url_request/url_request_context.h
@@ -230,6 +230,12 @@ class NET_EXPORT URLRequestContext
bool enable_brotli() const { return enable_brotli_; }
+ void set_check_cleartext_permitted(bool check_cleartext_permitted) {
pauljensen 2016/12/07 13:20:28 these functions need comments
mgersh 2016/12/13 17:02:58 Done.
+ check_cleartext_permitted_ = check_cleartext_permitted;
+ }
+
+ bool check_cleartext_permitted() const { return check_cleartext_permitted_; }
+
private:
// ---------------------------------------------------------------------------
// Important: When adding any new members below, consider whether they need to
@@ -268,6 +274,9 @@ class NET_EXPORT URLRequestContext
// Enables Brotli Content-Encoding support.
bool enable_brotli_;
+ // Enables checking policy before allowing a cleartext http or ws request.
+ // Only used on Android.
pauljensen 2016/12/07 13:20:28 policy->system policy
mgersh 2016/12/13 17:02:58 Done.
+ bool check_cleartext_permitted_;
DISALLOW_COPY_AND_ASSIGN(URLRequestContext);
};

Powered by Google App Engine
This is Rietveld 408576698