910e62b5创建于 1月15日历史提交
// 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_