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

Unified Diff: content/public/browser/geolocation_provider.h

Issue 2192683003: Revert of Reland: Geolocation: move from content/browser to device/ (patchset #2 id:20001 of https:… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2810
Patch Set: 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 | « content/public/browser/geolocation_delegate.cc ('k') | content/public/browser/location_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/geolocation_provider.h
diff --git a/device/geolocation/geolocation_provider.h b/content/public/browser/geolocation_provider.h
similarity index 87%
rename from device/geolocation/geolocation_provider.h
rename to content/public/browser/geolocation_provider.h
index 97b7a4cd71c5034de73f0e83f06c405887cece0f..9d6524aeb9445fa0b6ca634b87c9ce8506730309 100644
--- a/device/geolocation/geolocation_provider.h
+++ b/content/public/browser/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 DEVICE_GEOLOCATION_GEOLOCATION_PROVIDER_H_
-#define DEVICE_GEOLOCATION_GEOLOCATION_PROVIDER_H_
+#ifndef CONTENT_PUBLIC_BROWSER_GEOLOCATION_PROVIDER_H_
+#define CONTENT_PUBLIC_BROWSER_GEOLOCATION_PROVIDER_H_
#include <memory>
#include "base/callback_list.h"
-#include "device/geolocation/geolocation_export.h"
+#include "content/common/content_export.h"
-namespace device {
+namespace content {
class GeolocationDelegate;
struct Geoposition;
@@ -27,10 +27,10 @@ struct Geoposition;
// uses run on a separate Geolocation thread.
class GeolocationProvider {
public:
- DEVICE_GEOLOCATION_EXPORT static GeolocationProvider* GetInstance();
+ CONTENT_EXPORT static GeolocationProvider* GetInstance();
// Optional: provide a Delegate to override typical services.
- DEVICE_GEOLOCATION_EXPORT static void SetGeolocationDelegate(
+ CONTENT_EXPORT static void SetGeolocationDelegate(
GeolocationDelegate* delegate);
typedef base::Callback<void(const Geoposition&)> LocationUpdateCallback;
@@ -66,6 +66,6 @@ class GeolocationProvider {
virtual~GeolocationProvider() {}
};
-} // namespace device
+} // namespace content
-#endif // DEVICE_GEOLOCATION_GEOLOCATION_PROVIDER_H_
+#endif // CONTENT_PUBLIC_BROWSER_GEOLOCATION_PROVIDER_H_
« no previous file with comments | « content/public/browser/geolocation_delegate.cc ('k') | content/public/browser/location_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698