| 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_WEB_CONTENTS_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 // Notification that the page has lost the mouse lock. | 413 // Notification that the page has lost the mouse lock. |
| 414 virtual void LostMouseLock() {} | 414 virtual void LostMouseLock() {} |
| 415 | 415 |
| 416 // Asks permission to use the camera and/or microphone. If permission is | 416 // Asks permission to use the camera and/or microphone. If permission is |
| 417 // granted, a call should be made to |callback| with the devices. If the | 417 // granted, a call should be made to |callback| with the devices. If the |
| 418 // request is denied, a call should be made to |callback| with an empty list | 418 // request is denied, a call should be made to |callback| with an empty list |
| 419 // of devices. |request| has the details of the request (e.g. which of audio | 419 // of devices. |request| has the details of the request (e.g. which of audio |
| 420 // and/or video devices are requested, and lists of available devices). | 420 // and/or video devices are requested, and lists of available devices). |
| 421 virtual void RequestMediaAccessPermission( | 421 virtual void RequestMediaAccessPermission( |
| 422 WebContents* web_contents, | 422 WebContents* web_contents, |
| 423 const MediaStreamRequest* request, | 423 const MediaStreamRequest& request, |
| 424 const MediaResponseCallback& callback) {} | 424 const MediaResponseCallback& callback) {} |
| 425 | 425 |
| 426 // Requests permission to access the PPAPI broker. The delegate should return | 426 // Requests permission to access the PPAPI broker. The delegate should return |
| 427 // true and call the passed in |callback| with the result, or return false | 427 // true and call the passed in |callback| with the result, or return false |
| 428 // to indicate that it does not support asking for permission. | 428 // to indicate that it does not support asking for permission. |
| 429 virtual bool RequestPpapiBrokerPermission( | 429 virtual bool RequestPpapiBrokerPermission( |
| 430 WebContents* web_contents, | 430 WebContents* web_contents, |
| 431 const GURL& url, | 431 const GURL& url, |
| 432 const FilePath& plugin_path, | 432 const FilePath& plugin_path, |
| 433 const base::Callback<void(bool)>& callback); | 433 const base::Callback<void(bool)>& callback); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 444 // Called when |this| is no longer the WebContentsDelegate for |source|. | 444 // Called when |this| is no longer the WebContentsDelegate for |source|. |
| 445 void Detach(WebContents* source); | 445 void Detach(WebContents* source); |
| 446 | 446 |
| 447 // The WebContents that this is currently a delegate for. | 447 // The WebContents that this is currently a delegate for. |
| 448 std::set<WebContents*> attached_contents_; | 448 std::set<WebContents*> attached_contents_; |
| 449 }; | 449 }; |
| 450 | 450 |
| 451 } // namespace content | 451 } // namespace content |
| 452 | 452 |
| 453 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 453 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |