blob: d1cf1c14bd0ba643f0720fbdb87e9ea8165e2b0c [file] [log] [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_ui_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_