forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
remote_playback_client_wrapper_impl.h
36 lines (26 loc) · 1.1 KB
/
remote_playback_client_wrapper_impl.h
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
33
34
35
36
// Copyright 2018 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 MEDIA_BLINK_REMOTE_PLAYBACK_CLIENT_WRAPPER_IMPL_H_
#define MEDIA_BLINK_REMOTE_PLAYBACK_CLIENT_WRAPPER_IMPL_H_
#include <string>
#include "media/blink/media_blink_export.h"
#include "media/renderers/remote_playback_client_wrapper.h"
namespace blink {
class WebMediaPlayerClient;
class WebRemotePlaybackClient;
} // namespace blink
namespace media {
// Wraps a WebRemotePlaybackClient to expose only the methods used by the
// FlingingRendererClientFactory. This avoids dependencies on the blink layer.
class MEDIA_BLINK_EXPORT RemotePlaybackClientWrapperImpl
: public RemotePlaybackClientWrapper {
public:
explicit RemotePlaybackClientWrapperImpl(blink::WebMediaPlayerClient* client);
~RemotePlaybackClientWrapperImpl() override;
std::string GetActivePresentationId() override;
private:
blink::WebRemotePlaybackClient* remote_playback_client_;
};
} // namespace media
#endif // MEDIA_BLINK_REMOTE_PLAYBACK_CLIENT_WRAPPER_IMPL_H_