blob: 5db46e6ffb3c96f0e84617e9301d099e1dec39d4 [file] [log] [blame]
[email protected]859ec322013-09-13 16:24:561// Copyright 2013 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_BROWSER_UI_MEDIA_UTILS_H_
6#define CHROME_BROWSER_UI_MEDIA_UTILS_H_
7
grunell657d4d82014-09-18 00:09:438#include "base/callback.h"
[email protected]859ec322013-09-13 16:24:569#include "content/public/common/media_stream_request.h"
10
grunell657d4d82014-09-18 00:09:4311class GURL;
[email protected]859ec322013-09-13 16:24:5612class Profile;
13
14namespace content {
15class WebContents;
16}
17
18void RequestMediaAccessPermission(
19 content::WebContents* web_contents,
20 Profile* profile,
21 const content::MediaStreamRequest& request,
22 const content::MediaResponseCallback& callback);
23
grunell657d4d82014-09-18 00:09:4324bool CheckMediaAccessPermission(content::WebContents* web_contents,
25 const GURL& security_origin,
26 content::MediaStreamType type);
27
[email protected]859ec322013-09-13 16:24:5628#endif // CHROME_BROWSER_UI_MEDIA_UTILS_H_