Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1871)

Unified Diff: device/geolocation/geolocation_provider.h

Issue 2192683002: Reland 2:Geolocation: move from content/browser to device/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ignore size_t_to_int truncation warning Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/geolocation/geolocation_export.h ('k') | device/geolocation/geolocation_provider_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/geolocation/geolocation_provider.h
diff --git a/content/public/browser/geolocation_provider.h b/device/geolocation/geolocation_provider.h
similarity index 87%
rename from content/public/browser/geolocation_provider.h
rename to device/geolocation/geolocation_provider.h
index 9d6524aeb9445fa0b6ca634b87c9ce8506730309..97b7a4cd71c5034de73f0e83f06c405887cece0f 100644
--- a/content/public/browser/geolocation_provider.h
+++ b/device/geolocation/geolocation_provider.h
@@ -2,15 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_PUBLIC_BROWSER_GEOLOCATION_PROVIDER_H_
-#define CONTENT_PUBLIC_BROWSER_GEOLOCATION_PROVIDER_H_
+#ifndef DEVICE_GEOLOCATION_GEOLOCATION_PROVIDER_H_
+#define DEVICE_GEOLOCATION_GEOLOCATION_PROVIDER_H_
#include <memory>
#include "base/callback_list.h"
-#include "content/common/content_export.h"
+#include "device/geolocation/geolocation_export.h"
-namespace content {
+namespace device {
class GeolocationDelegate;
struct Geoposition;
@@ -27,10 +27,10 @@ struct Geoposition;
// uses run on a separate Geolocation thread.
class GeolocationProvider {
public:
- CONTENT_EXPORT static GeolocationProvider* GetInstance();
+ DEVICE_GEOLOCATION_EXPORT static GeolocationProvider* GetInstance();
// Optional: provide a Delegate to override typical services.
- CONTENT_EXPORT static void SetGeolocationDelegate(
+ DEVICE_GEOLOCATION_EXPORT static void SetGeolocationDelegate(
GeolocationDelegate* delegate);
typedef base::Callback<void(const Geoposition&)> LocationUpdateCallback;
@@ -66,6 +66,6 @@ class GeolocationProvider {
virtual~GeolocationProvider() {}
};
-} // namespace content
+} // namespace device
-#endif // CONTENT_PUBLIC_BROWSER_GEOLOCATION_PROVIDER_H_
+#endif // DEVICE_GEOLOCATION_GEOLOCATION_PROVIDER_H_
« no previous file with comments | « device/geolocation/geolocation_export.h ('k') | device/geolocation/geolocation_provider_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698