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

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: rebase only Created 3 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 void addPlayedRange(double start, double end); 429 void addPlayedRange(double start, double end);
430 430
431 // FIXME: Rename to scheduleNamedEvent for clarity. 431 // FIXME: Rename to scheduleNamedEvent for clarity.
432 void scheduleEvent(const AtomicString& eventName); 432 void scheduleEvent(const AtomicString& eventName);
433 433
434 // loading 434 // loading
435 void invokeLoadAlgorithm(); 435 void invokeLoadAlgorithm();
436 void invokeResourceSelectionAlgorithm(); 436 void invokeResourceSelectionAlgorithm();
437 void loadInternal(); 437 void loadInternal();
438 void selectMediaResource(); 438 void selectMediaResource();
439 void loadResource(const WebMediaPlayerSource&, const ContentType&); 439 void loadResource(const WebMediaPlayerSource&, const String& contentType);
440 void startPlayerLoad(const KURL& playerProvidedUrl = KURL()); 440 void startPlayerLoad(const KURL& playerProvidedUrl = KURL());
441 void setPlayerPreload(); 441 void setPlayerPreload();
442 WebMediaPlayer::LoadType loadType() const; 442 WebMediaPlayer::LoadType loadType() const;
443 void scheduleNextSourceChild(); 443 void scheduleNextSourceChild();
444 void loadSourceFromObject(); 444 void loadSourceFromObject();
445 void loadSourceFromAttribute(); 445 void loadSourceFromAttribute();
446 void loadNextSourceChild(); 446 void loadNextSourceChild();
447 void clearMediaPlayer(); 447 void clearMediaPlayer();
448 void clearMediaPlayerAndAudioSourceProviderClientWithoutLocking(); 448 void clearMediaPlayerAndAudioSourceProviderClientWithoutLocking();
449 bool havePotentialSourceChild(); 449 bool havePotentialSourceChild();
450 void noneSupported(); 450 void noneSupported();
451 void mediaEngineError(MediaError*); 451 void mediaEngineError(MediaError*);
452 void cancelPendingEventsAndCallbacks(); 452 void cancelPendingEventsAndCallbacks();
453 void waitForSourceChange(); 453 void waitForSourceChange();
454 void setIgnorePreloadNone(); 454 void setIgnorePreloadNone();
455 455
456 KURL selectNextSourceChild(ContentType*, InvalidURLAction); 456 KURL selectNextSourceChild(String* contentType, InvalidURLAction);
457 457
458 void mediaLoadingFailed(WebMediaPlayer::NetworkState); 458 void mediaLoadingFailed(WebMediaPlayer::NetworkState);
459 459
460 // deferred loading (preload=none) 460 // deferred loading (preload=none)
461 bool loadIsDeferred() const; 461 bool loadIsDeferred() const;
462 void deferLoad(); 462 void deferLoad();
463 void cancelDeferredLoad(); 463 void cancelDeferredLoad();
464 void startDeferredLoad(); 464 void startDeferredLoad();
465 void executeDeferredLoad(); 465 void executeDeferredLoad();
466 void deferredLoadTimerFired(TimerBase*); 466 void deferredLoadTimerFired(TimerBase*);
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 768
769 inline bool isHTMLMediaElement(const HTMLElement& element) { 769 inline bool isHTMLMediaElement(const HTMLElement& element) {
770 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 770 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
771 } 771 }
772 772
773 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 773 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
774 774
775 } // namespace blink 775 } // namespace blink
776 776
777 #endif // HTMLMediaElement_h 777 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698