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

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

Issue 1948033003: Convert most geolocation layout tests to use a JS mock implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission-disconnect
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | content/renderer/geolocation_dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory> 8 #include <memory>
9 9
10 #include "content/public/renderer/render_frame_observer.h" 10 #include "content/public/renderer/render_frame_observer.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 blink::mojom::PermissionStatus status);
54 54
55 std::unique_ptr<blink::WebGeolocationController> controller_; 55 std::unique_ptr<blink::WebGeolocationController> controller_;
56 56
57 size_t num_pending_permission_requests_ = 0;
57 std::unique_ptr<blink::WebGeolocationPermissionRequestManager> 58 std::unique_ptr<blink::WebGeolocationPermissionRequestManager>
58 pending_permissions_; 59 pending_permissions_;
59 blink::mojom::GeolocationServicePtr geolocation_service_; 60 blink::mojom::GeolocationServicePtr geolocation_service_;
60 bool enable_high_accuracy_; 61 bool enable_high_accuracy_;
61 blink::mojom::PermissionServicePtr permission_service_; 62 blink::mojom::PermissionServicePtr permission_service_;
62 }; 63 };
63 64
64 } // namespace content 65 } // namespace content
65 66
66 #endif // CONTENT_RENDERER_GEOLOCATION_DISPATCHER_H_ 67 #endif // CONTENT_RENDERER_GEOLOCATION_DISPATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/geolocation_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698