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

Unified Diff: net/android/network_library.h

Issue 2546213003: Implement net/ support for Android's NetworkSecurityPolicy (Closed)
Patch Set: fixes 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/android/network_library.h
diff --git a/net/android/network_library.h b/net/android/network_library.h
index 548d43a1f2524457cbd3600639e52a5a4225cc72..60d9abda2f1cc717c30886e9125f16a72e198e7c 100644
--- a/net/android/network_library.h
+++ b/net/android/network_library.h
@@ -45,6 +45,10 @@ bool StoreKeyPair(const uint8_t* public_key,
const uint8_t* private_key,
size_t private_len);
+// Returns true if cleartext traffic to |host| is allowed by the app. Always
+// true on L and older.
+bool IsCleartextPermitted(const std::string& host);
+
// Returns true if it can determine that only loopback addresses are configured.
// i.e. if only 127.0.0.1 and ::1 are routable.
// Also returns false if it cannot determine this.

Powered by Google App Engine
This is Rietveld 408576698