Respond with QuotaExceededError when IndexedDB has no disk space on open.
[chromium-blink-merge.git] / content / common / android / device_telephony_info.h
blob84922d010ad52d92cd48d0b99983b02901e8f266
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_COMMON_ANDROID_DEVICE_TELEPHONY_INFO_H_
6 #define CONTENT_COMMON_ANDROID_DEVICE_TELEPHONY_INFO_H_
8 #include <jni.h>
9 #include <string>
11 #include "base/android/scoped_java_ref.h"
12 #include "base/basictypes.h"
14 namespace content {
16 // Facilitates access to device information typically only
17 // available using the Android SDK, including Telephony properties.
18 class DeviceTelephonyInfo {
19 public:
20 DeviceTelephonyInfo();
21 ~DeviceTelephonyInfo();
23 // Returns the ISO country code equivalent of the current MCC.
24 std::string GetNetworkCountryIso();
26 // Registers methods with JNI and returns true if succeeded.
27 static bool RegisterDeviceTelephonyInfo(JNIEnv* env);
29 private:
30 base::android::ScopedJavaGlobalRef<jobject> j_device_info_;
32 DISALLOW_COPY_AND_ASSIGN(DeviceTelephonyInfo);
35 } // namespace content
37 #endif // CONTENT_COMMON_ANDROID_DEVICE_TELEPHONY_INFO_H_