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

Side by Side Diff: Source/modules/mediasource/MediaSourceBase.cpp

Issue 124003003: Add ascii() / latin1() / utf8() methods to AtomicString to avoid having to call string() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 m_attachedElement->durationChanged(duration); 164 m_attachedElement->durationChanged(duration);
165 m_webMediaSource->setDuration(duration); 165 m_webMediaSource->setDuration(duration);
166 } 166 }
167 167
168 168
169 void MediaSourceBase::setReadyState(const AtomicString& state) 169 void MediaSourceBase::setReadyState(const AtomicString& state)
170 { 170 {
171 ASSERT(state == openKeyword() || state == closedKeyword() || state == endedK eyword()); 171 ASSERT(state == openKeyword() || state == closedKeyword() || state == endedK eyword());
172 172
173 AtomicString oldState = readyState(); 173 AtomicString oldState = readyState();
174 WTF_LOG(Media, "MediaSourceBase::setReadyState() %p : %s -> %s", this, oldSt ate.string().ascii().data(), state.string().ascii().data()); 174 WTF_LOG(Media, "MediaSourceBase::setReadyState() %p : %s -> %s", this, oldSt ate.ascii().data(), state.ascii().data());
175 175
176 if (state == closedKeyword()) { 176 if (state == closedKeyword()) {
177 m_webMediaSource.clear(); 177 m_webMediaSource.clear();
178 m_attachedElement = 0; 178 m_attachedElement = 0;
179 } 179 }
180 180
181 if (oldState == state) 181 if (oldState == state)
182 return; 182 return;
183 183
184 m_readyState = state; 184 m_readyState = state;
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 { 309 {
310 return ActiveDOMObject::executionContext(); 310 return ActiveDOMObject::executionContext();
311 } 311 }
312 312
313 URLRegistry& MediaSourceBase::registry() const 313 URLRegistry& MediaSourceBase::registry() const
314 { 314 {
315 return MediaSourceRegistry::registry(); 315 return MediaSourceRegistry::registry();
316 } 316 }
317 317
318 } 318 }
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBTransaction.cpp ('k') | Source/modules/websockets/MainThreadWebSocketChannel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698