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