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

Side by Side Diff: content/renderer/geolocation_dispatcher.h

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, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_GEOLOCATION_DISPATCHER_H_ 5 #ifndef CONTENT_RENDERER_GEOLOCATION_DISPATCHER_H_
6 #define CONTENT_RENDERER_GEOLOCATION_DISPATCHER_H_ 6 #define CONTENT_RENDERER_GEOLOCATION_DISPATCHER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/common/geolocation_service.mojom.h"
10 #include "content/common/permission_service.mojom.h"
11 #include "content/public/renderer/render_frame_observer.h" 9 #include "content/public/renderer/render_frame_observer.h"
10 #include "third_party/WebKit/public/platform/modules/geolocation/geolocation.moj om.h"
11 #include "third_party/WebKit/public/platform/modules/permissions/permission.mojo m.h"
12 #include "third_party/WebKit/public/web/WebGeolocationClient.h" 12 #include "third_party/WebKit/public/web/WebGeolocationClient.h"
13 #include "third_party/WebKit/public/web/WebGeolocationController.h" 13 #include "third_party/WebKit/public/web/WebGeolocationController.h"
14 14
15 namespace blink { 15 namespace blink {
16 class WebGeolocationController; 16 class WebGeolocationController;
17 class WebGeolocationPermissionRequest; 17 class WebGeolocationPermissionRequest;
18 class WebGeolocationPermissionRequestManager; 18 class WebGeolocationPermissionRequestManager;
19 class WebGeolocationPosition; 19 class WebGeolocationPosition;
20 } 20 }
21 21
(...skipping 16 matching lines...) Expand all
38 void stopUpdating() override; 38 void stopUpdating() override;
39 void setEnableHighAccuracy(bool enable_high_accuracy) override; 39 void setEnableHighAccuracy(bool enable_high_accuracy) override;
40 void setController(blink::WebGeolocationController* controller) override; 40 void setController(blink::WebGeolocationController* controller) override;
41 bool lastPosition(blink::WebGeolocationPosition& position) override; 41 bool lastPosition(blink::WebGeolocationPosition& position) override;
42 void requestPermission( 42 void requestPermission(
43 const blink::WebGeolocationPermissionRequest& permissionRequest) override; 43 const blink::WebGeolocationPermissionRequest& permissionRequest) override;
44 void cancelPermissionRequest( 44 void cancelPermissionRequest(
45 const blink::WebGeolocationPermissionRequest& permissionRequest) override; 45 const blink::WebGeolocationPermissionRequest& permissionRequest) override;
46 46
47 void QueryNextPosition(); 47 void QueryNextPosition();
48 void OnPositionUpdate(mojom::MojoGeopositionPtr geoposition); 48 void OnPositionUpdate(blink::mojom::GeopositionPtr geoposition);
49 49
50 // Permission for using geolocation has been set. 50 // Permission for using geolocation has been set.
51 void OnPermissionSet(int permission_request_id, 51 void OnPermissionSet(int permission_request_id,
52 mojom::PermissionStatus status); 52 blink::mojom::PermissionStatus status);
53 53
54 scoped_ptr<blink::WebGeolocationController> controller_; 54 scoped_ptr<blink::WebGeolocationController> controller_;
55 55
56 scoped_ptr<blink::WebGeolocationPermissionRequestManager> 56 scoped_ptr<blink::WebGeolocationPermissionRequestManager>
57 pending_permissions_; 57 pending_permissions_;
58 mojom::GeolocationServicePtr geolocation_service_; 58 blink::mojom::GeolocationServicePtr geolocation_service_;
59 bool enable_high_accuracy_; 59 bool enable_high_accuracy_;
60 mojom::PermissionServicePtr permission_service_; 60 blink::mojom::PermissionServicePtr permission_service_;
61 }; 61 };
62 62
63 } // namespace content 63 } // namespace content
64 64
65 #endif // CONTENT_RENDERER_GEOLOCATION_DISPATCHER_H_ 65 #endif // CONTENT_RENDERER_GEOLOCATION_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/public/common/permission_status.mojom ('k') | content/renderer/geolocation_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698