summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/media/webrtc/media_authorization_wrapper_mac.h
blob: cd5c578d60471d914fba322f355bda0f4fe194a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_MEDIA_WEBRTC_MEDIA_AUTHORIZATION_WRAPPER_MAC_H_
#define CHROME_BROWSER_MEDIA_WEBRTC_MEDIA_AUTHORIZATION_WRAPPER_MAC_H_

#import <Foundation/NSString.h>

#include "base/callback_forward.h"

namespace system_media_permissions {

class MediaAuthorizationWrapper {
 public:
  virtual ~MediaAuthorizationWrapper() {}

  virtual NSInteger AuthorizationStatusForMediaType(NSString* media_type) = 0;
  virtual void RequestAccessForMediaType(NSString* media_type,
                                         base::RepeatingClosure callback,
                                         const base::TaskTraits& traits) = 0;
};

}  // namespace system_media_permissions

#endif  // CHROME_BROWSER_MEDIA_WEBRTC_MEDIA_AUTHORIZATION_WRAPPER_MAC_H_