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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
94 virtual bool hasPendingActivity() const override; | 94 virtual bool hasPendingActivity() const override; |
95 virtual void stop() override; | 95 virtual void stop() override; |
96 | 96 |
97 // URLRegistrable interface | 97 // URLRegistrable interface |
98 virtual URLRegistry& registry() const override; | 98 virtual URLRegistry& registry() const override; |
99 | 99 |
100 // Used by SourceBuffer. | 100 // Used by SourceBuffer. |
101 void openIfInEndedState(); | 101 void openIfInEndedState(); |
102 bool isOpen() const; | 102 bool isOpen() const; |
103 void setSourceBufferActive(SourceBuffer*); | 103 void setSourceBufferActive(SourceBuffer*); |
104 HTMLMediaElement* getHTMLMediaElement() const; | |
philipj_slow
2015/07/02 09:48:21
Getters don't often has "get" in Blink, just media
servolk
2015/07/07 23:01:52
Done. I've renamed to just mediaElement, but I've
| |
104 | 105 |
105 // Used by MediaSourceRegistry. | 106 // Used by MediaSourceRegistry. |
106 void addedToRegistry(); | 107 void addedToRegistry(); |
107 void removedFromRegistry(); | 108 void removedFromRegistry(); |
108 | 109 |
109 DECLARE_VIRTUAL_TRACE(); | 110 DECLARE_VIRTUAL_TRACE(); |
110 void clearWeakMembers(Visitor*); | 111 void clearWeakMembers(Visitor*); |
111 | 112 |
112 private: | 113 private: |
113 explicit MediaSource(ExecutionContext*); | 114 explicit MediaSource(ExecutionContext*); |
(...skipping 18 matching lines...) Expand all Loading... | |
132 | 133 |
133 Member<SourceBufferList> m_sourceBuffers; | 134 Member<SourceBufferList> m_sourceBuffers; |
134 Member<SourceBufferList> m_activeSourceBuffers; | 135 Member<SourceBufferList> m_activeSourceBuffers; |
135 | 136 |
136 bool m_isAddedToRegistry; | 137 bool m_isAddedToRegistry; |
137 }; | 138 }; |
138 | 139 |
139 } // namespace blink | 140 } // namespace blink |
140 | 141 |
141 #endif // MediaSource_h | 142 #endif // MediaSource_h |
OLD | NEW |