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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 { | 52 { |
53 m_private = mediaStreamComponent; | 53 m_private = mediaStreamComponent; |
54 return *this; | 54 return *this; |
55 } | 55 } |
56 | 56 |
57 void WebMediaStreamTrack::initialize(const WebMediaStreamSource& source) | 57 void WebMediaStreamTrack::initialize(const WebMediaStreamSource& source) |
58 { | 58 { |
59 m_private = MediaStreamComponent::create(source); | 59 m_private = MediaStreamComponent::create(source); |
60 } | 60 } |
61 | 61 |
| 62 void WebMediaStreamTrack::initialize(const WebString& id, const WebMediaStreamSo
urce& source) |
| 63 { |
| 64 m_private = MediaStreamComponent::create(id, source); |
| 65 } |
| 66 |
62 void WebMediaStreamTrack::reset() | 67 void WebMediaStreamTrack::reset() |
63 { | 68 { |
64 m_private.reset(); | 69 m_private.reset(); |
65 } | 70 } |
66 | 71 |
67 WebMediaStreamTrack::operator PassRefPtr<MediaStreamComponent>() const | 72 WebMediaStreamTrack::operator PassRefPtr<MediaStreamComponent>() const |
68 { | 73 { |
69 return m_private.get(); | 74 return m_private.get(); |
70 } | 75 } |
71 | 76 |
(...skipping 27 matching lines...) Expand all Loading... |
99 } | 104 } |
100 | 105 |
101 void WebMediaStreamTrack::assign(const WebMediaStreamTrack& other) | 106 void WebMediaStreamTrack::assign(const WebMediaStreamTrack& other) |
102 { | 107 { |
103 m_private = other.m_private; | 108 m_private = other.m_private; |
104 } | 109 } |
105 | 110 |
106 } // namespace WebKit | 111 } // namespace WebKit |
107 | 112 |
108 #endif // ENABLE(MEDIA_STREAM) | 113 #endif // ENABLE(MEDIA_STREAM) |
OLD | NEW |