Chromium Code Reviews| Index: net/android/network_library.h |
| diff --git a/net/android/network_library.h b/net/android/network_library.h |
| index 548d43a1f2524457cbd3600639e52a5a4225cc72..516e42bda631036ed67c32271dfd2d33ac160a65 100644 |
| --- a/net/android/network_library.h |
| +++ b/net/android/network_library.h |
| @@ -45,6 +45,14 @@ 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); |
| + |
| +// Helper for tests that simulates an app disallowing cleartext traffic entirely |
| +// on M and newer. |
| +NET_EXPORT_PRIVATE void SetUpSecurityPolicyForTesting(); |
|
pauljensen
2016/12/14 18:08:05
remove
mgersh
2016/12/14 19:17:24
Done.
|
| + |
| // 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. |