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

Unified Diff: net/base/net_util.h

Issue 238793007: Added GetNetworkOperatorID util func in net/base/net_util and a non-trivial implementation for Andr… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: net/base/net_util.h
diff --git a/net/base/net_util.h b/net/base/net_util.h
index d822f6926d8397e3d07311de6eb3c93f2ed77f75..99331ce0b83a70a67b9ba060583c39cf2c86675d 100644
--- a/net/base/net_util.h
+++ b/net/base/net_util.h
@@ -26,6 +26,9 @@
#include "net/base/net_log.h"
class GURL;
+#if defined(OS_ANDROID)
+#include <jni.h>
+#endif
namespace base {
class Time;
@@ -522,6 +525,13 @@ enum DiffServCodePoint {
DSCP_LAST = DSCP_CS7
};
+// Network operator numeric name.
+NET_EXPORT std::string GetNetworkOperatorID();
+
+#if defined(OS_ANDROID)
+bool NetworkInfo_GetNetworkOperatorID(JNIEnv* env);
+#endif
+
} // namespace net
#endif // NET_BASE_NET_UTIL_H_
« no previous file with comments | « net/android/net_jni_registrar.cc ('k') | net/base/net_util.cc » ('j') | net/base/net_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698