OLD | NEW |
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 CONTENT_COMMON_ANDROID_DEVICE_INFO_H_ | 5 #ifndef CONTENT_COMMON_ANDROID_DEVICE_INFO_H_ |
6 #define CONTENT_COMMON_ANDROID_DEVICE_INFO_H_ | 6 #define CONTENT_COMMON_ANDROID_DEVICE_INFO_H_ |
7 #pragma once | |
8 | 7 |
9 #include <jni.h> | 8 #include <jni.h> |
10 #include <string> | 9 #include <string> |
11 | 10 |
12 #include "base/android/scoped_java_ref.h" | 11 #include "base/android/scoped_java_ref.h" |
13 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
14 | 13 |
15 namespace content { | 14 namespace content { |
16 | 15 |
17 // Facilitates access to device information typically only | 16 // Facilitates access to device information typically only |
(...skipping 15 matching lines...) Expand all Loading... |
33 base::android::ScopedJavaGlobalRef<jobject> j_device_info_; | 32 base::android::ScopedJavaGlobalRef<jobject> j_device_info_; |
34 | 33 |
35 DISALLOW_COPY_AND_ASSIGN(DeviceInfo); | 34 DISALLOW_COPY_AND_ASSIGN(DeviceInfo); |
36 }; | 35 }; |
37 | 36 |
38 bool RegisterDeviceInfo(JNIEnv* env); | 37 bool RegisterDeviceInfo(JNIEnv* env); |
39 | 38 |
40 } // namespace content | 39 } // namespace content |
41 | 40 |
42 #endif // CONTENT_COMMON_ANDROID_DEVICE_INFO_H_ | 41 #endif // CONTENT_COMMON_ANDROID_DEVICE_INFO_H_ |
OLD | NEW |