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

Unified Diff: content/renderer/geolocation_dispatcher.cc

Issue 1771743002: Move geolocation and permission mojoms into WebKit/public/platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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/renderer/geolocation_dispatcher.h ('k') | content/renderer/media/media_permission_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/geolocation_dispatcher.cc
diff --git a/content/renderer/geolocation_dispatcher.cc b/content/renderer/geolocation_dispatcher.cc
index 59f0d44a987cc136eebf86e5af82c4d0f6534eb0..083927fce88076ec67d93fd29af75dfc7f10a4e1 100644
--- a/content/renderer/geolocation_dispatcher.cc
+++ b/content/renderer/geolocation_dispatcher.cc
@@ -80,7 +80,7 @@ void GeolocationDispatcher::requestPermission(
int permission_request_id = pending_permissions_->add(permissionRequest);
permission_service_->RequestPermission(
- mojom::PermissionName::GEOLOCATION,
+ blink::mojom::PermissionName::GEOLOCATION,
permissionRequest.getSecurityOrigin().toString().utf8(),
base::Bind(&GeolocationDispatcher::OnPermissionSet,
base::Unretained(this), permission_request_id));
@@ -93,13 +93,15 @@ void GeolocationDispatcher::cancelPermissionRequest(
}
// Permission for using geolocation has been set.
-void GeolocationDispatcher::OnPermissionSet(int permission_request_id,
- mojom::PermissionStatus status) {
+void GeolocationDispatcher::OnPermissionSet(
+ int permission_request_id,
+ blink::mojom::PermissionStatus status) {
WebGeolocationPermissionRequest permissionRequest;
if (!pending_permissions_->remove(permission_request_id, permissionRequest))
return;
- permissionRequest.setIsAllowed(status == mojom::PermissionStatus::GRANTED);
+ permissionRequest.setIsAllowed(status ==
+ blink::mojom::PermissionStatus::GRANTED);
}
void GeolocationDispatcher::QueryNextPosition() {
@@ -110,7 +112,7 @@ void GeolocationDispatcher::QueryNextPosition() {
}
void GeolocationDispatcher::OnPositionUpdate(
- mojom::MojoGeopositionPtr geoposition) {
+ blink::mojom::GeopositionPtr geoposition) {
QueryNextPosition();
if (geoposition->valid) {
@@ -131,10 +133,10 @@ void GeolocationDispatcher::OnPositionUpdate(
} else {
WebGeolocationError::Error code;
switch (geoposition->error_code) {
- case mojom::MojoGeoposition::ErrorCode::PERMISSION_DENIED:
+ case blink::mojom::Geoposition::ErrorCode::PERMISSION_DENIED:
code = WebGeolocationError::ErrorPermissionDenied;
break;
- case mojom::MojoGeoposition::ErrorCode::POSITION_UNAVAILABLE:
+ case blink::mojom::Geoposition::ErrorCode::POSITION_UNAVAILABLE:
code = WebGeolocationError::ErrorPositionUnavailable;
break;
default:
« no previous file with comments | « content/renderer/geolocation_dispatcher.h ('k') | content/renderer/media/media_permission_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698