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

Unified Diff: content/common/android/device_telephony_info.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 | « content/common/android/common_jni_registrar.cc ('k') | content/common/android/device_telephony_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/android/device_telephony_info.h
diff --git a/content/common/android/device_telephony_info.h b/content/common/android/device_telephony_info.h
deleted file mode 100644
index 58ff03e8892fec0fe23a5dd1686bdb71ce3ad43f..0000000000000000000000000000000000000000
--- a/content/common/android/device_telephony_info.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_COMMON_ANDROID_DEVICE_TELEPHONY_INFO_H_
-#define CONTENT_COMMON_ANDROID_DEVICE_TELEPHONY_INFO_H_
-
-#include <jni.h>
-#include <string>
-
-#include "base/android/scoped_java_ref.h"
-#include "base/basictypes.h"
-
-namespace content {
-
-// Facilitates access to device information typically only
-// available using the Android SDK, including Telephony properties.
-class DeviceTelephonyInfo {
- public:
- DeviceTelephonyInfo();
- ~DeviceTelephonyInfo();
-
- // Returns the ISO country code equivalent of the current MCC.
- std::string GetNetworkCountryIso();
-
- // Returns MCC+MNC (mobile country code + mobile network code) as
- // the numeric name of the current registered operator.
- std::string GetNetworkOperator();
-
- // Registers methods with JNI and returns true if succeeded.
- static bool RegisterDeviceTelephonyInfo(JNIEnv* env);
-
- private:
- base::android::ScopedJavaGlobalRef<jobject> j_device_info_;
-
- DISALLOW_COPY_AND_ASSIGN(DeviceTelephonyInfo);
-};
-
-} // namespace content
-
-#endif // CONTENT_COMMON_ANDROID_DEVICE_TELEPHONY_INFO_H_
« no previous file with comments | « content/common/android/common_jni_registrar.cc ('k') | content/common/android/device_telephony_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698