diff options
author | james.wei@intel.com <james.wei@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-15 07:46:39 +0000 |
---|---|---|
committer | james.wei@intel.com <james.wei@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-15 07:46:39 +0000 |
commit | c470e1b90271e7347962ea9641b91fe87a7ea034 (patch) | |
tree | d2a1e7f77e30227db46f025995623b2fc0e65285 /net/android/network_library.cc | |
parent | c4fc5f3b0f783b7662bfe8c128e3cde7c6352fda (diff) | |
download | chromium_src-c470e1b90271e7347962ea9641b91fe87a7ea034.zip chromium_src-c470e1b90271e7347962ea9641b91fe87a7ea034.tar.gz chromium_src-c470e1b90271e7347962ea9641b91fe87a7ea034.tar.bz2 |
implement HaveOnlyLoopbackAddresses() for android
BUG=132033
TEST=
Review URL: https://chromiumcodereview.appspot.com/10532080
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142354 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/android/network_library.cc')
-rw-r--r-- | net/android/network_library.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/android/network_library.cc b/net/android/network_library.cc index 24a065e..57cf551 100644 --- a/net/android/network_library.cc +++ b/net/android/network_library.cc @@ -64,6 +64,11 @@ bool StoreKeyPair(const uint8* public_key, return ret; } +bool HaveOnlyLoopbackAddresses() { + JNIEnv* env = AttachCurrentThread(); + return Java_AndroidNetworkLibrary_haveOnlyLoopbackAddresses(env); +} + bool GetMimeTypeFromExtension(const std::string& extension, std::string* result) { JNIEnv* env = AttachCurrentThread(); |