Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_EXTENSION_HOST_DELEGATE_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_HOST_DELEGATE_H_ |
| 6 #define EXTENSIONS_BROWSER_EXTENSION_HOST_DELEGATE_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSION_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "content/public/common/media_stream_request.h" | 10 #include "content/public/common/media_stream_request.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 49 const gfx::Rect& initial_pos, | 49 const gfx::Rect& initial_pos, |
| 50 bool user_gesture) = 0; | 50 bool user_gesture) = 0; |
| 51 | 51 |
| 52 // Requests access to an audio or video media stream. Invokes |callback| | 52 // Requests access to an audio or video media stream. Invokes |callback| |
| 53 // with the response. | 53 // with the response. |
| 54 virtual void ProcessMediaAccessRequest( | 54 virtual void ProcessMediaAccessRequest( |
| 55 content::WebContents* web_contents, | 55 content::WebContents* web_contents, |
| 56 const content::MediaStreamRequest& request, | 56 const content::MediaStreamRequest& request, |
| 57 const content::MediaResponseCallback& callback, | 57 const content::MediaResponseCallback& callback, |
| 58 const Extension* extension) = 0; | 58 const Extension* extension) = 0; |
| 59 | |
| 60 virtual bool CheckMediaAccessPermission(content::WebContents* web_contents, | |
|
Yoyo Zhou
2014/09/12 18:30:40
needs function documentation
Henrik Grunell
2014/09/15 11:33:47
Done.
| |
| 61 const GURL& security_origin, | |
| 62 content::MediaStreamType type, | |
| 63 const Extension* extension) = 0; | |
| 59 }; | 64 }; |
| 60 | 65 |
| 61 } // namespace extensions | 66 } // namespace extensions |
| 62 | 67 |
| 63 #endif // EXTENSIONS_BROWSER_EXTENSION_HOST_DELEGATE_H_ | 68 #endif // EXTENSIONS_BROWSER_EXTENSION_HOST_DELEGATE_H_ |
| OLD | NEW |