| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebMediaPlayerSource_h | 5 #ifndef WebMediaPlayerSource_h |
| 6 #define WebMediaPlayerSource_h | 6 #define WebMediaPlayerSource_h |
| 7 | 7 |
| 8 #include "WebCommon.h" | 8 #include "WebCommon.h" |
| 9 #include "WebMediaStream.h" | 9 #include "WebMediaStream.h" |
| 10 #include "WebURL.h" | 10 #include "WebURL.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class BLINK_PLATFORM_EXPORT WebMediaPlayerSource { | 14 class BLINK_PLATFORM_EXPORT WebMediaPlayerSource { |
| 15 public: | 15 public: |
| 16 WebMediaPlayerSource(); | 16 WebMediaPlayerSource(); |
| 17 explicit WebMediaPlayerSource(const WebURL&); | 17 explicit WebMediaPlayerSource(const WebURL&); |
| 18 explicit WebMediaPlayerSource(const WebMediaStream&); | 18 explicit WebMediaPlayerSource(const WebMediaStream&); |
| 19 ~WebMediaPlayerSource(); | 19 ~WebMediaPlayerSource(); |
| 20 | 20 |
| 21 bool isURL() const; | 21 bool isURL() const; |
| 22 WebURL getAsURL() const; | 22 WebURL getAsURL() const; |
| 23 | 23 |
| 24 bool isMediaProviderObject() const; | |
| 25 | |
| 26 bool isMediaStream() const; | 24 bool isMediaStream() const; |
| 27 WebMediaStream getAsMediaStream() const; | 25 WebMediaStream getAsMediaStream() const; |
| 28 | 26 |
| 29 private: | 27 private: |
| 30 WebURL m_url; | 28 WebURL m_url; |
| 31 WebMediaStream m_mediaStream; | 29 WebMediaStream m_mediaStream; |
| 32 }; | 30 }; |
| 33 | 31 |
| 34 } // namespace blink | 32 } // namespace blink |
| 35 | 33 |
| 36 #endif // WebMediaPlayerSource_h | 34 #endif // WebMediaPlayerSource_h |
| OLD | NEW |