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

Side by Side Diff: third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.cpp

Issue 2007983006: Rename OwnPtr::clear() to reset() in modules/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 Apple Inc. All rights reserved. 2 * Copyright (C) 2013 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 visitor->trace(m_mediaElement); 241 visitor->trace(m_mediaElement);
242 ActiveDOMObject::trace(visitor); 242 ActiveDOMObject::trace(visitor);
243 } 243 }
244 244
245 void MediaKeys::contextDestroyed() 245 void MediaKeys::contextDestroyed()
246 { 246 {
247 ActiveDOMObject::contextDestroyed(); 247 ActiveDOMObject::contextDestroyed();
248 248
249 // We don't need the CDM anymore. Only destroyed after all related 249 // We don't need the CDM anymore. Only destroyed after all related
250 // ActiveDOMObjects have been stopped. 250 // ActiveDOMObjects have been stopped.
251 m_cdm.clear(); 251 m_cdm.reset();
252 } 252 }
253 253
254 bool MediaKeys::hasPendingActivity() const 254 bool MediaKeys::hasPendingActivity() const
255 { 255 {
256 // Remain around if there are pending events. 256 // Remain around if there are pending events.
257 DVLOG(MEDIA_KEYS_LOG_LEVEL) << __FUNCTION__ << "(" << this << ")" 257 DVLOG(MEDIA_KEYS_LOG_LEVEL) << __FUNCTION__ << "(" << this << ")"
258 << (!m_pendingActions.isEmpty() ? " !m_pendingActions.isEmpty()" : "") 258 << (!m_pendingActions.isEmpty() ? " !m_pendingActions.isEmpty()" : "")
259 << (m_reservedForMediaElement ? " m_reservedForMediaElement" : ""); 259 << (m_reservedForMediaElement ? " m_reservedForMediaElement" : "");
260 260
261 return !m_pendingActions.isEmpty() || m_reservedForMediaElement; 261 return !m_pendingActions.isEmpty() || m_reservedForMediaElement;
262 } 262 }
263 263
264 void MediaKeys::stop() 264 void MediaKeys::stop()
265 { 265 {
266 ActiveDOMObject::stop(); 266 ActiveDOMObject::stop();
267 267
268 if (m_timer.isActive()) 268 if (m_timer.isActive())
269 m_timer.stop(); 269 m_timer.stop();
270 m_pendingActions.clear(); 270 m_pendingActions.clear();
271 } 271 }
272 272
273 } // namespace blink 273 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698