Index: chrome/browser/android/location_settings.h |
diff --git a/chrome/browser/android/location_settings.h b/chrome/browser/android/location_settings.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a886719cad9a4c6e0ecc3a2ae8ac656dd9376764 |
--- /dev/null |
+++ b/chrome/browser/android/location_settings.h |
@@ -0,0 +1,24 @@ |
+// Copyright 2012 The Chromium Authors. All rights reserved. |
Ted C
2015/01/20 17:52:18
Should all of these be 2015 now?
newt (away)
2015/01/20 22:46:08
Done.
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_H_ |
+#define CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_H_ |
+ |
+#include "base/macros.h" |
+ |
+// This class determines whether Chrome can access the device's location, |
+// i.e. whether location is enabled system-wide on the device. |
+class LocationSettings { |
+ public: |
+ // TODO(newt): remove constructor? is it needed? |
+ LocationSettings() {} |
+ virtual ~LocationSettings() {} |
+ |
+ virtual bool IsSystemLocationEnabled() = 0; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(LocationSettings); |
+}; |
+ |
+#endif // CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_H_ |