| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_IMPL_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_IMPL_H_ |
| 6 #define CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_IMPL_H_ | 6 #define CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/android/jni_weak_ref.h" | 8 #include "base/android/jni_weak_ref.h" |
| 9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
| 10 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 11 #include "chrome/browser/android/location_settings.h" | 12 #include "chrome/browser/android/location_settings.h" |
| 12 | 13 |
| 13 class LocationSettingsImpl : public LocationSettings { | 14 class LocationSettingsImpl : public LocationSettings { |
| 14 public: | 15 public: |
| 15 LocationSettingsImpl(); | 16 LocationSettingsImpl(); |
| 16 ~LocationSettingsImpl() override; | 17 ~LocationSettingsImpl() override; |
| 17 | 18 |
| 18 static bool Register(JNIEnv* env); | 19 static bool Register(JNIEnv* env); |
| 19 | 20 |
| 20 // LocationSettings implementation: | 21 // LocationSettings implementation: |
| 21 bool CanSitesRequestLocationPermission( | 22 bool CanSitesRequestLocationPermission( |
| 22 content::WebContents* web_contents) override; | 23 content::WebContents* web_contents) override; |
| 23 | 24 |
| 24 private: | 25 private: |
| 25 DISALLOW_COPY_AND_ASSIGN(LocationSettingsImpl); | 26 DISALLOW_COPY_AND_ASSIGN(LocationSettingsImpl); |
| 26 }; | 27 }; |
| 27 | 28 |
| 28 #endif // CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_IMPL_H_ | 29 #endif // CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_IMPL_H_ |
| OLD | NEW |