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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.h

Issue 2730853002: Add UMA logging to track bad MIME types passed to HTMLMediaElement (Closed)
Patch Set: Created 3 years, 9 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) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 void addPlayedRange(double start, double end); 417 void addPlayedRange(double start, double end);
418 418
419 // FIXME: Rename to scheduleNamedEvent for clarity. 419 // FIXME: Rename to scheduleNamedEvent for clarity.
420 void scheduleEvent(const AtomicString& eventName); 420 void scheduleEvent(const AtomicString& eventName);
421 421
422 // loading 422 // loading
423 void invokeLoadAlgorithm(); 423 void invokeLoadAlgorithm();
424 void invokeResourceSelectionAlgorithm(); 424 void invokeResourceSelectionAlgorithm();
425 void loadInternal(); 425 void loadInternal();
426 void selectMediaResource(); 426 void selectMediaResource();
427 void loadResource(const WebMediaPlayerSource&, const ContentType&); 427 void loadResource(const WebMediaPlayerSource&, const String& contentType);
428 void startPlayerLoad(const KURL& playerProvidedUrl = KURL()); 428 void startPlayerLoad(const KURL& playerProvidedUrl = KURL());
429 void setPlayerPreload(); 429 void setPlayerPreload();
430 WebMediaPlayer::LoadType loadType() const; 430 WebMediaPlayer::LoadType loadType() const;
431 void scheduleNextSourceChild(); 431 void scheduleNextSourceChild();
432 void loadSourceFromObject(); 432 void loadSourceFromObject();
433 void loadSourceFromAttribute(); 433 void loadSourceFromAttribute();
434 void loadNextSourceChild(); 434 void loadNextSourceChild();
435 void clearMediaPlayer(); 435 void clearMediaPlayer();
436 void clearMediaPlayerAndAudioSourceProviderClientWithoutLocking(); 436 void clearMediaPlayerAndAudioSourceProviderClientWithoutLocking();
437 bool havePotentialSourceChild(); 437 bool havePotentialSourceChild();
438 void noneSupported(); 438 void noneSupported();
439 void mediaEngineError(MediaError*); 439 void mediaEngineError(MediaError*);
440 void cancelPendingEventsAndCallbacks(); 440 void cancelPendingEventsAndCallbacks();
441 void waitForSourceChange(); 441 void waitForSourceChange();
442 void setIgnorePreloadNone(); 442 void setIgnorePreloadNone();
443 443
444 KURL selectNextSourceChild(ContentType*, InvalidURLAction); 444 KURL selectNextSourceChild(String*, InvalidURLAction);
445 445
446 void mediaLoadingFailed(WebMediaPlayer::NetworkState); 446 void mediaLoadingFailed(WebMediaPlayer::NetworkState);
447 447
448 // deferred loading (preload=none) 448 // deferred loading (preload=none)
449 bool loadIsDeferred() const; 449 bool loadIsDeferred() const;
450 void deferLoad(); 450 void deferLoad();
451 void cancelDeferredLoad(); 451 void cancelDeferredLoad();
452 void startDeferredLoad(); 452 void startDeferredLoad();
453 void executeDeferredLoad(); 453 void executeDeferredLoad();
454 void deferredLoadTimerFired(TimerBase*); 454 void deferredLoadTimerFired(TimerBase*);
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 754
755 inline bool isHTMLMediaElement(const HTMLElement& element) { 755 inline bool isHTMLMediaElement(const HTMLElement& element) {
756 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 756 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
757 } 757 }
758 758
759 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 759 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
760 760
761 } // namespace blink 761 } // namespace blink
762 762
763 #endif // HTMLMediaElement_h 763 #endif // HTMLMediaElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698