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

Unified Diff: device/geolocation/geolocation_provider_impl.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_provider.h ('k') | device/geolocation/geolocation_provider_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/geolocation/geolocation_provider_impl.h
diff --git a/content/browser/geolocation/geolocation_provider_impl.h b/device/geolocation/geolocation_provider_impl.h
similarity index 84%
rename from content/browser/geolocation/geolocation_provider_impl.h
rename to device/geolocation/geolocation_provider_impl.h
index b7c7e9dcbc9ed7681dad836f2f831a8500e88475..f21b9dcc5a783bb04f644cc4ee2158462b9e62bf 100644
--- a/content/browser/geolocation/geolocation_provider_impl.h
+++ b/device/geolocation/geolocation_provider_impl.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_GEOLOCATION_PROVIDER_IMPL_H_
-#define CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PROVIDER_IMPL_H_
+#ifndef DEVICE_GEOLOCATION_GEOLOCATION_PROVIDER_IMPL_H_
+#define DEVICE_GEOLOCATION_GEOLOCATION_PROVIDER_IMPL_H_
#include <list>
#include <memory>
@@ -13,18 +13,19 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/threading/thread.h"
-#include "content/common/content_export.h"
-#include "content/public/browser/geolocation_provider.h"
-#include "content/public/common/geoposition.h"
+#include "device/geolocation/geolocation_export.h"
+#include "device/geolocation/geolocation_provider.h"
+#include "device/geolocation/geoposition.h"
namespace base {
template<typename Type> struct DefaultSingletonTraits;
+class SingleThreadTaskRunner;
}
-namespace content {
+namespace device {
class LocationArbitrator;
-class CONTENT_EXPORT GeolocationProviderImpl
+class DEVICE_GEOLOCATION_EXPORT GeolocationProviderImpl
: public NON_EXPORTED_BASE(GeolocationProvider),
public base::Thread {
public:
@@ -94,9 +95,12 @@ class CONTENT_EXPORT GeolocationProviderImpl
// Only to be used on the geolocation thread.
std::unique_ptr<LocationArbitrator> arbitrator_;
+ // Used to PostTask()s from the geolocation thread to creation thread.
+ const scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
+
DISALLOW_COPY_AND_ASSIGN(GeolocationProviderImpl);
};
-} // namespace content
+} // namespace device
-#endif // CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PROVIDER_IMPL_H_
+#endif // DEVICE_GEOLOCATION_GEOLOCATION_PROVIDER_IMPL_H_
« no previous file with comments | « device/geolocation/geolocation_provider.h ('k') | device/geolocation/geolocation_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698