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

Side by Side Diff: content/browser/geolocation/geolocation_dispatcher_host.cc

Issue 38043004: Cancel MIDI permission request infobar on MIDIAccess stop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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 #include "content/browser/geolocation/geolocation_dispatcher_host.h" 5 #include "content/browser/geolocation/geolocation_dispatcher_host.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual ~GeolocationDispatcherHostImpl(); 59 virtual ~GeolocationDispatcherHostImpl();
60 60
61 void OnRequestPermission(int render_view_id, 61 void OnRequestPermission(int render_view_id,
62 int bridge_id, 62 int bridge_id,
63 const GURL& requesting_frame); 63 const GURL& requesting_frame);
64 void OnCancelPermissionRequest(int render_view_id, 64 void OnCancelPermissionRequest(int render_view_id,
65 int bridge_id, 65 int bridge_id,
66 const GURL& requesting_frame); 66 const GURL& requesting_frame);
67 void OnStartUpdating(int render_view_id, 67 void OnStartUpdating(int render_view_id,
68 const GURL& requesting_frame, 68 const GURL& requesting_frame,
69 bool enable_high_accuracy); 69 bool enable_high_accuracy);
70 void OnStopUpdating(int render_view_id); 70 void OnStopUpdating(int render_view_id);
71 71
72 // Updates the |geolocation_provider_| with the currently required update 72 // Updates the |geolocation_provider_| with the currently required update
73 // options, based on |renderer_high_accuracy_|. 73 // options, based on |renderer_high_accuracy_|.
74 void RefreshHighAccuracy(); 74 void RefreshHighAccuracy();
75 75
76 void OnLocationUpdate(const Geoposition& position); 76 void OnLocationUpdate(const Geoposition& position);
77 77
78 int render_process_id_; 78 int render_process_id_;
79 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_; 79 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_;
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 geolocation_permission_context); 243 geolocation_permission_context);
244 } 244 }
245 245
246 GeolocationDispatcherHost::GeolocationDispatcherHost() { 246 GeolocationDispatcherHost::GeolocationDispatcherHost() {
247 } 247 }
248 248
249 GeolocationDispatcherHost::~GeolocationDispatcherHost() { 249 GeolocationDispatcherHost::~GeolocationDispatcherHost() {
250 } 250 }
251 251
252 } // namespace content 252 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698