1 // 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.
5 #ifndef CHROME_BROWSER_UI_MEDIA_UTILS_H_
6 #define CHROME_BROWSER_UI_MEDIA_UTILS_H_
8 #include "base/callback.h"
9 #include "content/public/common/media_stream_request.h"
18 void RequestMediaAccessPermission(
19 content::WebContents* web_contents,
21 const content::MediaStreamRequest& request,
22 const content::MediaResponseCallback& callback);
24 bool CheckMediaAccessPermission(content::WebContents* web_contents,
25 const GURL& security_origin,
26 content::MediaStreamType type);
28 #endif // CHROME_BROWSER_UI_MEDIA_UTILS_H_