Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: third_party/WebKit/public/platform/WebMediaPlayerSource.h

Issue 1815033003: Add srcObject attribute of type MediaStream to HTMLMediaElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: philipj's comments Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WebMediaPlayerSource_h
6 #define WebMediaPlayerSource_h
7
8 #include "WebCommon.h"
9 #include "WebMediaStream.h"
10 #include "WebURL.h"
11
12 namespace blink {
13
14 class BLINK_PLATFORM_EXPORT WebMediaPlayerSource {
15 public:
16 WebMediaPlayerSource();
17 explicit WebMediaPlayerSource(const WebURL&);
18 explicit WebMediaPlayerSource(const WebMediaStream&);
19 ~WebMediaPlayerSource();
20
21 bool isURL() const;
22 WebURL getAsURL() const;
23
24 bool isMediaProviderObject() const;
25
26 bool isMediaStream() const;
27 WebMediaStream getAsMediaStream() const;
28
29 private:
30 WebURL m_url;
31 WebMediaStream m_mediaStream;
32 };
33
34 } // namespace blink
35
36 #endif // WebMediaPlayerSource_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698