| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 class WebAudioSourceProvider; | 37 class WebAudioSourceProvider; |
| 38 class WebMediaStream; | 38 class WebMediaStream; |
| 39 class WebMediaStreamSource; | 39 class WebMediaStreamSource; |
| 40 class WebString; | 40 class WebString; |
| 41 | 41 |
| 42 class WebMediaStreamTrack { | 42 class WebMediaStreamTrack { |
| 43 public: | 43 public: |
| 44 class ExtraData { | 44 class ExtraData { |
| 45 public: | 45 public: |
| 46 virtual ~ExtraData() { } | 46 virtual ~ExtraData() { } |
| 47 BLINK_PLATFORM_EXPORT WebMediaStreamTrack owner(); |
| 48 |
| 49 #if INSIDE_BLINK |
| 50 BLINK_PLATFORM_EXPORT void setOwner(WebCore::MediaStreamComponent*); |
| 51 #endif |
| 52 |
| 53 private: |
| 54 WebCore::MediaStreamComponent* m_owner; |
| 47 }; | 55 }; |
| 48 | 56 |
| 49 WebMediaStreamTrack() { } | 57 WebMediaStreamTrack() { } |
| 50 WebMediaStreamTrack(const WebMediaStreamTrack& other) { assign(other); } | 58 WebMediaStreamTrack(const WebMediaStreamTrack& other) { assign(other); } |
| 51 ~WebMediaStreamTrack() { reset(); } | 59 ~WebMediaStreamTrack() { reset(); } |
| 52 | 60 |
| 53 WebMediaStreamTrack& operator=(const WebMediaStreamTrack& other) | 61 WebMediaStreamTrack& operator=(const WebMediaStreamTrack& other) |
| 54 { | 62 { |
| 55 assign(other); | 63 assign(other); |
| 56 return *this; | 64 return *this; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 operator WebCore::MediaStreamComponent*() const; | 97 operator WebCore::MediaStreamComponent*() const; |
| 90 #endif | 98 #endif |
| 91 | 99 |
| 92 private: | 100 private: |
| 93 WebPrivatePtr<WebCore::MediaStreamComponent> m_private; | 101 WebPrivatePtr<WebCore::MediaStreamComponent> m_private; |
| 94 }; | 102 }; |
| 95 | 103 |
| 96 } // namespace blink | 104 } // namespace blink |
| 97 | 105 |
| 98 #endif // WebMediaStreamTrack_h | 106 #endif // WebMediaStreamTrack_h |
| OLD | NEW |