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

Side by Side Diff: extensions/browser/extension_host_delegate.h

Issue 562263002: Check media permissions through RenderFrameHostDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@render_frame_get_sources
Patch Set: git cl format. Don't blame me. Created 6 years, 3 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 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698