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

Unified Diff: device/geolocation/network_location_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/mock_location_provider.cc ('k') | device/geolocation/network_location_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/geolocation/network_location_provider.h
diff --git a/content/browser/geolocation/network_location_provider.h b/device/geolocation/network_location_provider.h
similarity index 87%
rename from content/browser/geolocation/network_location_provider.h
rename to device/geolocation/network_location_provider.h
index cef1ad161407d5d252fb886d7a4d65e8aeab8954..d5ddcbfe75e7a5960b9e97db557898ad84e55c3d 100644
--- a/content/browser/geolocation/network_location_provider.h
+++ b/device/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 CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_
-#define CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_
+#ifndef DEVICE_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_
+#define DEVICE_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 "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"
+#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"
-namespace content {
+namespace device {
class AccessTokenStore;
class NetworkLocationProvider : public base::NonThreadSafe,
public LocationProviderBase {
public:
// Cache of recently resolved locations. Public for tests.
- class CONTENT_EXPORT PositionCache {
+ class DEVICE_GEOLOCATION_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.
-CONTENT_EXPORT LocationProviderBase* NewNetworkLocationProvider(
+DEVICE_GEOLOCATION_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 content
+} // namespace device
-#endif // CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_
+#endif // DEVICE_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_
« no previous file with comments | « device/geolocation/mock_location_provider.cc ('k') | device/geolocation/network_location_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698