| 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
|
| index 6b64547641bf7d9b5a73490d6f61b836a12a794b..e9888cfa641a55d168f4e4e8769025c7a4d52844 100644
|
| --- 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
|
| @@ -5,14 +5,22 @@
|
| #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/callback.h"
|
| #include "base/macros.h"
|
| +#include "third_party/WebKit/public/web/WebDOMMediaStreamTrack.h"
|
| #include "third_party/wds/src/libwds/public/media_manager.h"
|
|
|
| namespace extensions {
|
|
|
| class WiFiDisplayMediaManager : public wds::SourceMediaManager {
|
| public:
|
| - WiFiDisplayMediaManager();
|
| + using ErrorCallback = base::Callback<void(const std::string&)>;
|
| +
|
| + WiFiDisplayMediaManager(
|
| + const blink::WebMediaStreamTrack& video_track,
|
| + const blink::WebMediaStreamTrack& audio_track,
|
| + const ErrorCallback& error_callback);
|
| +
|
| ~WiFiDisplayMediaManager() override;
|
|
|
| private:
|
| @@ -39,6 +47,15 @@ class WiFiDisplayMediaManager : public wds::SourceMediaManager {
|
|
|
| std::string GetSessionId() const override;
|
|
|
| + private:
|
| + blink::WebMediaStreamTrack video_track_;
|
| + blink::WebMediaStreamTrack audio_track_;
|
| +
|
| + std::pair<int,int> sink_rtp_ports_;
|
| + wds::H264VideoFormat optimal_video_format_;
|
| +
|
| + ErrorCallback error_callback_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(WiFiDisplayMediaManager);
|
| };
|
|
|
|
|