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

Unified Diff: content/browser/geolocation/network_location_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
Index: content/browser/geolocation/network_location_provider.h
diff --git a/device/geolocation/network_location_provider.h b/content/browser/geolocation/network_location_provider.h
similarity index 87%
rename from device/geolocation/network_location_provider.h
rename to content/browser/geolocation/network_location_provider.h
index d5ddcbfe75e7a5960b9e97db557898ad84e55c3d..cef1ad161407d5d252fb886d7a4d65e8aeab8954 100644
--- a/device/geolocation/network_location_provider.h
+++ b/content/browser/geolocation/network_location_provider.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef DEVICE_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_
-#define DEVICE_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_
+#ifndef CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_
+#define CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_
#include <stddef.h>
@@ -17,20 +17,20 @@
#include "base/strings/string16.h"
#include "base/threading/non_thread_safe.h"
#include "base/threading/thread.h"
-#include "device/geolocation/geolocation_export.h"
-#include "device/geolocation/geoposition.h"
-#include "device/geolocation/location_provider_base.h"
-#include "device/geolocation/network_location_request.h"
-#include "device/geolocation/wifi_data_provider_manager.h"
+#include "content/browser/geolocation/location_provider_base.h"
+#include "content/browser/geolocation/network_location_request.h"
+#include "content/browser/geolocation/wifi_data_provider_manager.h"
+#include "content/common/content_export.h"
+#include "content/public/common/geoposition.h"
-namespace device {
+namespace content {
class AccessTokenStore;
class NetworkLocationProvider : public base::NonThreadSafe,
public LocationProviderBase {
public:
// Cache of recently resolved locations. Public for tests.
- class DEVICE_GEOLOCATION_EXPORT PositionCache {
+ class CONTENT_EXPORT PositionCache {
public:
// The maximum size of the cache of positions.
static const size_t kMaximumSize;
@@ -135,12 +135,12 @@ class NetworkLocationProvider : public base::NonThreadSafe,
// Factory functions for the various types of location provider to abstract
// over the platform-dependent implementations.
-DEVICE_GEOLOCATION_EXPORT LocationProviderBase* NewNetworkLocationProvider(
+CONTENT_EXPORT LocationProviderBase* NewNetworkLocationProvider(
const scoped_refptr<AccessTokenStore>& access_token_store,
const scoped_refptr<net::URLRequestContextGetter>& context,
const GURL& url,
const base::string16& access_token);
-} // namespace device
+} // namespace content
-#endif // DEVICE_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_
+#endif // CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_
« no previous file with comments | « content/browser/geolocation/mock_location_provider.cc ('k') | content/browser/geolocation/network_location_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698