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

Side by Side Diff: third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp Created 3 years, 11 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
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 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 void SourceBuffer::suspend() { 1032 void SourceBuffer::suspend() {
1033 m_appendBufferAsyncPartRunner->suspend(); 1033 m_appendBufferAsyncPartRunner->suspend();
1034 m_removeAsyncPartRunner->suspend(); 1034 m_removeAsyncPartRunner->suspend();
1035 } 1035 }
1036 1036
1037 void SourceBuffer::resume() { 1037 void SourceBuffer::resume() {
1038 m_appendBufferAsyncPartRunner->resume(); 1038 m_appendBufferAsyncPartRunner->resume();
1039 m_removeAsyncPartRunner->resume(); 1039 m_removeAsyncPartRunner->resume();
1040 } 1040 }
1041 1041
1042 void SourceBuffer::contextDestroyed() { 1042 void SourceBuffer::contextDestroyed(ExecutionContext*) {
1043 m_appendBufferAsyncPartRunner->stop(); 1043 m_appendBufferAsyncPartRunner->stop();
1044 m_removeAsyncPartRunner->stop(); 1044 m_removeAsyncPartRunner->stop();
1045 } 1045 }
1046 1046
1047 ExecutionContext* SourceBuffer::getExecutionContext() const { 1047 ExecutionContext* SourceBuffer::getExecutionContext() const {
1048 return SuspendableObject::getExecutionContext(); 1048 return SuspendableObject::getExecutionContext();
1049 } 1049 }
1050 1050
1051 const AtomicString& SourceBuffer::interfaceName() const { 1051 const AtomicString& SourceBuffer::interfaceName() const {
1052 return EventTargetNames::SourceBuffer; 1052 return EventTargetNames::SourceBuffer;
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
1299 visitor->trace(m_asyncEventQueue); 1299 visitor->trace(m_asyncEventQueue);
1300 visitor->trace(m_appendBufferAsyncPartRunner); 1300 visitor->trace(m_appendBufferAsyncPartRunner);
1301 visitor->trace(m_removeAsyncPartRunner); 1301 visitor->trace(m_removeAsyncPartRunner);
1302 visitor->trace(m_audioTracks); 1302 visitor->trace(m_audioTracks);
1303 visitor->trace(m_videoTracks); 1303 visitor->trace(m_videoTracks);
1304 EventTargetWithInlineData::trace(visitor); 1304 EventTargetWithInlineData::trace(visitor);
1305 SuspendableObject::trace(visitor); 1305 SuspendableObject::trace(visitor);
1306 } 1306 }
1307 1307
1308 } // namespace blink 1308 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698