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

Unified Diff: net/android/network_library.h

Issue 254823005: Move android Telephony APIs to from content/ to net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NET_EXPORT the moved APIs. Created 6 years, 8 months 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 | « net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java ('k') | net/android/network_library.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/android/network_library.h
diff --git a/net/android/network_library.h b/net/android/network_library.h
index 5d4d73d5b55db0e422493cd43fc188d8534956fc..ba2bfb5eb355354faea8b16758e36f6e83ea256a 100644
--- a/net/android/network_library.h
+++ b/net/android/network_library.h
@@ -71,6 +71,14 @@ std::string GetNetworkList();
bool GetMimeTypeFromExtension(const std::string& extension,
std::string* result);
+// Returns the ISO country code equivalent of the current MCC (mobile country
+// code).
+NET_EXPORT std::string GetTelephonyNetworkCountryIso();
+
+// Returns MCC+MNC (mobile country code + mobile network code) as
+// the numeric name of the current registered operator.
+NET_EXPORT std::string GetTelephonyNetworkOperator();
+
// Register JNI methods
NET_EXPORT bool RegisterNetworkLibrary(JNIEnv* env);
« no previous file with comments | « net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java ('k') | net/android/network_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698