OLD | NEW |
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 <memory> | 8 #include <memory> |
9 | 9 |
| 10 #include "components/permissions/permission.mojom.h" |
10 #include "content/public/renderer/render_frame_observer.h" | 11 #include "content/public/renderer/render_frame_observer.h" |
11 #include "third_party/WebKit/public/platform/modules/geolocation/geolocation.moj
om.h" | 12 #include "third_party/WebKit/public/platform/modules/geolocation/geolocation.moj
om.h" |
12 #include "third_party/WebKit/public/platform/modules/permissions/permission.mojo
m.h" | |
13 #include "third_party/WebKit/public/web/WebGeolocationClient.h" | 13 #include "third_party/WebKit/public/web/WebGeolocationClient.h" |
14 #include "third_party/WebKit/public/web/WebGeolocationController.h" | 14 #include "third_party/WebKit/public/web/WebGeolocationController.h" |
15 | 15 |
16 namespace blink { | 16 namespace blink { |
17 class WebGeolocationController; | 17 class WebGeolocationController; |
18 class WebGeolocationPermissionRequest; | 18 class WebGeolocationPermissionRequest; |
19 class WebGeolocationPermissionRequestManager; | 19 class WebGeolocationPermissionRequestManager; |
20 class WebGeolocationPosition; | 20 class WebGeolocationPosition; |
21 } | 21 } |
22 | 22 |
(...skipping 20 matching lines...) Expand all Loading... |
43 void requestPermission( | 43 void requestPermission( |
44 const blink::WebGeolocationPermissionRequest& permissionRequest) override; | 44 const blink::WebGeolocationPermissionRequest& permissionRequest) override; |
45 void cancelPermissionRequest( | 45 void cancelPermissionRequest( |
46 const blink::WebGeolocationPermissionRequest& permissionRequest) override; | 46 const blink::WebGeolocationPermissionRequest& permissionRequest) override; |
47 | 47 |
48 void QueryNextPosition(); | 48 void QueryNextPosition(); |
49 void OnPositionUpdate(blink::mojom::GeopositionPtr geoposition); | 49 void OnPositionUpdate(blink::mojom::GeopositionPtr geoposition); |
50 | 50 |
51 // Permission for using geolocation has been set. | 51 // Permission for using geolocation has been set. |
52 void OnPermissionSet(int permission_request_id, | 52 void OnPermissionSet(int permission_request_id, |
53 blink::mojom::PermissionStatus status); | 53 permissions::mojom::PermissionStatus status); |
54 | 54 |
55 std::unique_ptr<blink::WebGeolocationController> controller_; | 55 std::unique_ptr<blink::WebGeolocationController> controller_; |
56 | 56 |
57 std::unique_ptr<blink::WebGeolocationPermissionRequestManager> | 57 std::unique_ptr<blink::WebGeolocationPermissionRequestManager> |
58 pending_permissions_; | 58 pending_permissions_; |
59 blink::mojom::GeolocationServicePtr geolocation_service_; | 59 blink::mojom::GeolocationServicePtr geolocation_service_; |
60 bool enable_high_accuracy_; | 60 bool enable_high_accuracy_; |
61 blink::mojom::PermissionServicePtr permission_service_; | 61 permissions::mojom::PermissionServicePtr permission_service_; |
62 }; | 62 }; |
63 | 63 |
64 } // namespace content | 64 } // namespace content |
65 | 65 |
66 #endif // CONTENT_RENDERER_GEOLOCATION_DISPATCHER_H_ | 66 #endif // CONTENT_RENDERER_GEOLOCATION_DISPATCHER_H_ |
OLD | NEW |