OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_ANDROID_GOOGLE_LOCATION_SETTINGS_HELPER_FACTORY_H_ |
| 6 #define CHROME_BROWSER_ANDROID_GOOGLE_LOCATION_SETTINGS_HELPER_FACTORY_H_ |
| 7 |
| 8 #include "base/android/jni_helper.h" |
| 9 #include "base/android/scoped_java_ref.h" |
| 10 #include "base/values.h" |
| 11 |
| 12 /* |
| 13 * Factory class on chrome side to create the chrome java |
| 14 * GoogleLocationSettingsHelper object. |
| 15 */ |
| 16 class GoogleLocationSettingsHelperFactory { |
| 17 |
| 18 public: |
| 19 GoogleLocationSettingsHelperFactory(); |
| 20 ~GoogleLocationSettingsHelperFactory(); |
| 21 virtual const base::android::ScopedJavaGlobalRef<jobject>& |
| 22 GetHelperInstance(); |
| 23 static bool Register(JNIEnv* env); |
| 24 |
| 25 private: |
| 26 base::android::ScopedJavaGlobalRef<jobject> |
| 27 java_google_location_settings_helper_; |
| 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(GoogleLocationSettingsHelperFactory); |
| 30 }; |
| 31 |
| 32 #endif // CHROME_BROWSER_ANDROID_GOOGLE_LOCATION_SETTINGS_HELPER_FACTORY_H_ |
OLD | NEW |