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
27
28
29
30
31
32
content / browser / media / desktop_media_window_registry.h [blame]
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_MEDIA_DESKTOP_MEDIA_WINDOW_REGISTRY_H_
#define CONTENT_BROWSER_MEDIA_DESKTOP_MEDIA_WINDOW_REGISTRY_H_
#include "content/public/browser/desktop_media_id.h"
#include "ui/gfx/native_widget_types.h"
namespace content {
class DesktopMediaWindowRegistry {
public:
static DesktopMediaWindowRegistry* GetInstance();
DesktopMediaWindowRegistry(const DesktopMediaWindowRegistry&) = delete;
DesktopMediaWindowRegistry& operator=(const DesktopMediaWindowRegistry&) =
delete;
virtual ~DesktopMediaWindowRegistry();
virtual DesktopMediaID::Id RegisterWindow(gfx::NativeWindow window) = 0;
virtual gfx::NativeWindow GetWindowById(DesktopMediaID::Id id) = 0;
protected:
DesktopMediaWindowRegistry();
};
} // namespace content
#endif // CONTENT_BROWSER_MEDIA_DESKTOP_MEDIA_WINDOW_REGISTRY_H_