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

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

Issue 2002073002: media: Replace wtf/Assertions.h macros in favor of base/logging.h macros (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix test failures Created 4 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
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } 69 }
70 70
71 void SourceBufferList::clear() 71 void SourceBufferList::clear()
72 { 72 {
73 m_list.clear(); 73 m_list.clear();
74 scheduleEvent(EventTypeNames::removesourcebuffer); 74 scheduleEvent(EventTypeNames::removesourcebuffer);
75 } 75 }
76 76
77 void SourceBufferList::scheduleEvent(const AtomicString& eventName) 77 void SourceBufferList::scheduleEvent(const AtomicString& eventName)
78 { 78 {
79 ASSERT(m_asyncEventQueue); 79 DCHECK(m_asyncEventQueue);
80 80
81 Event* event = Event::create(eventName); 81 Event* event = Event::create(eventName);
82 event->setTarget(this); 82 event->setTarget(this);
83 83
84 m_asyncEventQueue->enqueueEvent(event); 84 m_asyncEventQueue->enqueueEvent(event);
85 } 85 }
86 86
87 const AtomicString& SourceBufferList::interfaceName() const 87 const AtomicString& SourceBufferList::interfaceName() const
88 { 88 {
89 return EventTargetNames::SourceBufferList; 89 return EventTargetNames::SourceBufferList;
90 } 90 }
91 91
92 ExecutionContext* SourceBufferList::getExecutionContext() const 92 ExecutionContext* SourceBufferList::getExecutionContext() const
93 { 93 {
94 return m_executionContext; 94 return m_executionContext;
95 } 95 }
96 96
97 DEFINE_TRACE(SourceBufferList) 97 DEFINE_TRACE(SourceBufferList)
98 { 98 {
99 visitor->trace(m_executionContext); 99 visitor->trace(m_executionContext);
100 visitor->trace(m_asyncEventQueue); 100 visitor->trace(m_asyncEventQueue);
101 visitor->trace(m_list); 101 visitor->trace(m_list);
102 EventTargetWithInlineData::trace(visitor); 102 EventTargetWithInlineData::trace(visitor);
103 } 103 }
104 104
105 } // namespace blink 105 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698