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

Side by Side Diff: chrome/common/extensions/request_media_access_permission_helper.h

Issue 11198044: Make tab capture media stream requests verify that the request came from extension API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_COMMON_EXTENSIONS_REQUEST_MEDIA_ACCESS_PERMISSION_HELPER_H_
6 #define CHROME_COMMON_EXTENSIONS_REQUEST_MEDIA_ACCESS_PERMISSION_HELPER_H_
7
8 #include "base/callback.h"
9 #include "chrome/common/extensions/extension.h"
10 #include "content/public/common/media_stream_request.h"
11
12 namespace content{
13 typedef base::Callback< void(const MediaStreamDevices&) > MediaResponseCallback;
14 } // namespace content
15
16 namespace extensions {
17
18 class RequestMediaAccessPermissionHelper {
19 public:
20 static void AuthorizeRequest(const content::MediaStreamRequest* request,
21 const content::MediaResponseCallback& callback,
22 const extensions::Extension* extension,
23 bool is_packaged_app);
24
25 private:
26 RequestMediaAccessPermissionHelper();
27 ~RequestMediaAccessPermissionHelper();
28
29 DISALLOW_COPY_AND_ASSIGN(RequestMediaAccessPermissionHelper);
30 };
31
32 } // namespace extensions
33
34 #endif // CHROME_COMMON_EXTENSIONS_REQUEST_MEDIA_ACCESS_PERMISSION_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/extensions/request_media_access_permission_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698