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

Side by Side Diff: net/android/network_library.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_ANDROID_NETWORK_LIBRARY_H_ 5 #ifndef NET_ANDROID_NETWORK_LIBRARY_H_
6 #define NET_ANDROID_NETWORK_LIBRARY_H_ 6 #define NET_ANDROID_NETWORK_LIBRARY_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // network name and address pair. 64 // network name and address pair.
65 // e.g. "eth0,10.0.0.2;eth0,fe80::5054:ff:fe12:3456" is a result string 65 // e.g. "eth0,10.0.0.2;eth0,fe80::5054:ff:fe12:3456" is a result string
66 // containing two items. 66 // containing two items.
67 std::string GetNetworkList(); 67 std::string GetNetworkList();
68 68
69 // Get the mime type (if any) that is associated with the file extension. 69 // Get the mime type (if any) that is associated with the file extension.
70 // Returns true if a corresponding mime type exists. 70 // Returns true if a corresponding mime type exists.
71 bool GetMimeTypeFromExtension(const std::string& extension, 71 bool GetMimeTypeFromExtension(const std::string& extension,
72 std::string* result); 72 std::string* result);
73 73
74 // Returns the numeric name (MCC+MNC) of current registered operator.
bengr 2014/04/21 20:50:58 "of the"
bengr 2014/04/21 20:50:58 Also, please explain what MCC+MNC means in the com
bolian 2014/04/21 22:37:17 Done.
bolian 2014/04/21 22:37:17 Done.
75 std::string GetNetworkOperatorID();
76
74 // Register JNI methods 77 // Register JNI methods
75 NET_EXPORT bool RegisterNetworkLibrary(JNIEnv* env); 78 NET_EXPORT bool RegisterNetworkLibrary(JNIEnv* env);
76 79
77 } // namespace android 80 } // namespace android
78 } // namespace net 81 } // namespace net
79 82
80 #endif // NET_ANDROID_NETWORK_LIBRARY_H_ 83 #endif // NET_ANDROID_NETWORK_LIBRARY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698