| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 // ActiveDOMObject interface | 93 // ActiveDOMObject interface |
| 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 | 104 |
| 104 // Used by MediaSourceRegistry. | 105 // Used by MediaSourceRegistry. |
| 105 void addedToRegistry(); | 106 void addedToRegistry(); |
| 106 void removedFromRegistry(); | 107 void removedFromRegistry(); |
| 107 | 108 |
| 108 void trace(Visitor*); | 109 void trace(Visitor*); |
| 109 void clearWeakMembers(Visitor*); | 110 void clearWeakMembers(Visitor*); |
| 110 | 111 |
| 111 private: | 112 private: |
| 112 explicit MediaSource(ExecutionContext*); | 113 explicit MediaSource(ExecutionContext*); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 131 | 132 |
| 132 Member<SourceBufferList> m_sourceBuffers; | 133 Member<SourceBufferList> m_sourceBuffers; |
| 133 Member<SourceBufferList> m_activeSourceBuffers; | 134 Member<SourceBufferList> m_activeSourceBuffers; |
| 134 | 135 |
| 135 bool m_isAddedToRegistry; | 136 bool m_isAddedToRegistry; |
| 136 }; | 137 }; |
| 137 | 138 |
| 138 } // namespace blink | 139 } // namespace blink |
| 139 | 140 |
| 140 #endif // MediaSource_h | 141 #endif // MediaSource_h |
| OLD | NEW |