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

Unified Diff: content/browser/geolocation/geolocation_service_impl.h

Issue 1373883003: Move geolocation and permission mojoms into components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/geolocation_service_impl.h
diff --git a/content/browser/geolocation/geolocation_service_impl.h b/content/browser/geolocation/geolocation_service_impl.h
index 45b37e7fd601c21e3b20c4682b559c7d8d5c284c..79019656d218fbbdb6471765977267a1038dd300 100644
--- a/content/browser/geolocation/geolocation_service_impl.h
+++ b/content/browser/geolocation/geolocation_service_impl.h
@@ -3,9 +3,8 @@
// found in the LICENSE file.
#include "base/memory/scoped_ptr.h"
+#include "components/geolocation/public/interfaces/geolocation.mojom.h"
#include "content/browser/geolocation/geolocation_provider_impl.h"
-#include "content/common/geolocation_service.mojom.h"
-#include "content/public/common/mojo_geoposition.mojom.h"
#include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h"
#ifndef CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_SERVICE_IMPL_H_
@@ -17,7 +16,7 @@ class GeolocationProvider;
class GeolocationServiceContext;
// Implements the GeolocationService Mojo interface.
-class GeolocationServiceImpl : public GeolocationService {
+class GeolocationServiceImpl : public geolocation::GeolocationService {
public:
// |context| must outlive this object. |update_callback| will be called when
// location updates are sent, allowing the client to know when the service
@@ -39,7 +38,7 @@ class GeolocationServiceImpl : public GeolocationService {
void ClearOverride();
private:
- typedef mojo::Callback<void(MojoGeopositionPtr)> PositionCallback;
+ typedef mojo::Callback<void(geolocation::GeopositionPtr)> PositionCallback;
// GeolocationService:
void SetHighAccuracy(bool high_accuracy) override;
@@ -68,7 +67,7 @@ class GeolocationServiceImpl : public GeolocationService {
// subsequently been called.
Geoposition position_override_;
- MojoGeoposition current_position_;
+ geolocation::Geoposition current_position_;
// Whether this instance is currently observing location updates with high
// accuracy.
« no previous file with comments | « content/browser/geolocation/geolocation_service_context.cc ('k') | content/browser/geolocation/geolocation_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698