| Index: extensions/renderer/api/display_source/wifi_display/wifi_display_media_manager.h
|
| diff --git a/extensions/renderer/api/display_source/wifi_display/wifi_display_media_manager.h b/extensions/renderer/api/display_source/wifi_display/wifi_display_media_manager.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..20f6551b382b898704dd74e651df8a77508a07c4
|
| --- /dev/null
|
| +++ b/extensions/renderer/api/display_source/wifi_display/wifi_display_media_manager.h
|
| @@ -0,0 +1,48 @@
|
| +// Copyright 2016 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 EXTENSIONS_BROWSER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_MEDIA_MANAGER_H_
|
| +#define EXTENSIONS_BROWSER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_MEDIA_MANAGER_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "third_party/wds/src/libwds/public/media_manager.h"
|
| +
|
| +namespace extensions {
|
| +
|
| +class WiFiDisplayMediaManager : public wds::SourceMediaManager {
|
| + public:
|
| + WiFiDisplayMediaManager();
|
| +
|
| + ~WiFiDisplayMediaManager() override;
|
| +
|
| + private:
|
| + // wds::SourceMediaManager overrides.
|
| + void Play() override;
|
| +
|
| + void Pause() override;
|
| + void Teardown() override;
|
| + bool IsPaused() const override;
|
| + wds::SessionType GetSessionType() const override;
|
| + void SetSinkRtpPorts(int port1, int port2) override;
|
| + std::pair<int,int> GetSinkRtpPorts() const override;
|
| + int GetLocalRtpPort() const override;
|
| +
|
| + bool InitOptimalVideoFormat(
|
| + const wds::NativeVideoFormat& sink_native_format,
|
| + const std::vector<wds::H264VideoCodec>& sink_supported_codecs) override;
|
| + wds::H264VideoFormat GetOptimalVideoFormat() const override;
|
| + bool InitOptimalAudioFormat(
|
| + const std::vector<wds::AudioCodec>& sink_supported_codecs) override;
|
| + wds::AudioCodec GetOptimalAudioFormat() const override;
|
| +
|
| + void SendIDRPicture() override;
|
| +
|
| + std::string GetSessionId() const override;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(WiFiDisplayMediaManager);
|
| +};
|
| +
|
| +} // namespace extensions
|
| +
|
| +#endif // EXTENSIONS_BROWSER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_MEDIA_MANAGER_H_
|
|
|