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

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 356543003: Audit the last usage of Geolocation and Notification permissions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Jam nits. Created 6 years, 5 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_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 // called with the result. If |cancel_callback| is non-null, it's set to a 446 // called with the result. If |cancel_callback| is non-null, it's set to a
447 // callback which can be used to cancel the permission request. 447 // callback which can be used to cancel the permission request.
448 virtual void RequestGeolocationPermission( 448 virtual void RequestGeolocationPermission(
449 WebContents* web_contents, 449 WebContents* web_contents,
450 int bridge_id, 450 int bridge_id,
451 const GURL& requesting_frame, 451 const GURL& requesting_frame,
452 bool user_gesture, 452 bool user_gesture,
453 base::Callback<void(bool)> result_callback, 453 base::Callback<void(bool)> result_callback,
454 base::Closure* cancel_callback); 454 base::Closure* cancel_callback);
455 455
456 // Invoked when the Geolocation API uses its permission.
457 virtual void DidUseGeolocationPermission(WebContents* web_contents,
458 const GURL& frame_url,
459 const GURL& main_frame_url) {}
460
456 // Requests a permission to use system exclusive messages in MIDI events. 461 // Requests a permission to use system exclusive messages in MIDI events.
457 // |result_callback| will be invoked when the request is resolved. If 462 // |result_callback| will be invoked when the request is resolved. If
458 // |cancel_callback| is non-null, it's set to a callback which can be used to 463 // |cancel_callback| is non-null, it's set to a callback which can be used to
459 // cancel the permission request. 464 // cancel the permission request.
460 virtual void RequestMidiSysExPermission( 465 virtual void RequestMidiSysExPermission(
461 WebContents* web_contents, 466 WebContents* web_contents,
462 int bridge_id, 467 int bridge_id,
463 const GURL& requesting_frame, 468 const GURL& requesting_frame,
464 bool user_gesture, 469 bool user_gesture,
465 base::Callback<void(bool)> result_callback, 470 base::Callback<void(bool)> result_callback,
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 653 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
649 // implementation. Return NULL to disable external surface video. 654 // implementation. Return NULL to disable external surface video.
650 virtual ExternalVideoSurfaceContainer* 655 virtual ExternalVideoSurfaceContainer*
651 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 656 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
652 #endif 657 #endif
653 }; 658 };
654 659
655 } // namespace content 660 } // namespace content
656 661
657 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 662 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698