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_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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 | 437 |
438 // The renderer is requesting permission to use Geolocation. When the answer | 438 // The renderer is requesting permission to use Geolocation. When the answer |
439 // to a permission request has been determined, |result_callback| should be | 439 // to a permission request has been determined, |result_callback| should be |
440 // called with the result. If |cancel_callback| is non-null, it's set to a | 440 // called with the result. If |cancel_callback| is non-null, it's set to a |
441 // callback which can be used to cancel the permission request. | 441 // callback which can be used to cancel the permission request. |
442 virtual void RequestGeolocationPermission( | 442 virtual void RequestGeolocationPermission( |
443 WebContents* web_contents, | 443 WebContents* web_contents, |
444 int bridge_id, | 444 int bridge_id, |
445 const GURL& requesting_frame, | 445 const GURL& requesting_frame, |
446 bool user_gesture, | 446 bool user_gesture, |
447 base::Callback<void(bool)> result_callback, | 447 const base::Callback<void(bool)>& result_callback); |
448 base::Closure* cancel_callback); | 448 |
| 449 virtual void CancelGeolocationPermissionRequest( |
| 450 WebContents* web_contents, |
| 451 int bridge_id, |
| 452 const GURL& requesting_frame); |
449 | 453 |
450 // Invoked when the Geolocation API uses its permission. | 454 // Invoked when the Geolocation API uses its permission. |
451 virtual void DidUseGeolocationPermission(WebContents* web_contents, | 455 virtual void DidUseGeolocationPermission(WebContents* web_contents, |
452 const GURL& frame_url, | 456 const GURL& frame_url, |
453 const GURL& main_frame_url) {} | 457 const GURL& main_frame_url) {} |
454 | 458 |
455 // Requests a permission to use system exclusive messages in MIDI events. | 459 // Requests a permission to use system exclusive messages in MIDI events. |
456 // |result_callback| will be invoked when the request is resolved. If | 460 // |result_callback| will be invoked when the request is resolved. If |
457 // |cancel_callback| is non-null, it's set to a callback which can be used to | 461 // |cancel_callback| is non-null, it's set to a callback which can be used to |
458 // cancel the permission request. | 462 // cancel the permission request. |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 // camera. Note that this does not query the user. |type| must be | 647 // camera. Note that this does not query the user. |type| must be |
644 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. | 648 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. |
645 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, | 649 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, |
646 const GURL& security_origin, | 650 const GURL& security_origin, |
647 MediaStreamType type); | 651 MediaStreamType type); |
648 }; | 652 }; |
649 | 653 |
650 } // namespace content | 654 } // namespace content |
651 | 655 |
652 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 656 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |