Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(952)

Side by Side Diff: Source/modules/mediasource/MediaSource.h

Issue 1193383002: Oilpan: have media element prefinalizer handle all finalization. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: move conditional closing of MediaSource to media elt prefinalizer Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/modules/mediasource/MediaSource.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 104
105 // Used by MediaSourceRegistry. 105 // Used by MediaSourceRegistry.
106 void addedToRegistry(); 106 void addedToRegistry();
107 void removedFromRegistry(); 107 void removedFromRegistry();
108 108
109 DECLARE_VIRTUAL_TRACE(); 109 DECLARE_VIRTUAL_TRACE();
110 void clearWeakMembers(Visitor*);
111 110
112 private: 111 private:
113 explicit MediaSource(ExecutionContext*); 112 explicit MediaSource(ExecutionContext*);
114 113
115 void setReadyState(const AtomicString&); 114 void setReadyState(const AtomicString&);
116 void onReadyStateChange(const AtomicString&, const AtomicString&); 115 void onReadyStateChange(const AtomicString&, const AtomicString&);
117 116
118 bool isUpdating() const; 117 bool isUpdating() const;
119 118
120 PassOwnPtr<WebSourceBuffer> createWebSourceBuffer(const String& type, const Vector<String>& codecs, ExceptionState&); 119 PassOwnPtr<WebSourceBuffer> createWebSourceBuffer(const String& type, const Vector<String>& codecs, ExceptionState&);
(...skipping 11 matching lines...) Expand all
132 131
133 Member<SourceBufferList> m_sourceBuffers; 132 Member<SourceBufferList> m_sourceBuffers;
134 Member<SourceBufferList> m_activeSourceBuffers; 133 Member<SourceBufferList> m_activeSourceBuffers;
135 134
136 bool m_isAddedToRegistry; 135 bool m_isAddedToRegistry;
137 }; 136 };
138 137
139 } // namespace blink 138 } // namespace blink
140 139
141 #endif // MediaSource_h 140 #endif // MediaSource_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/modules/mediasource/MediaSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698