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

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

Issue 364033003: Eliminate MediaPlayer abstraction(network state) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modified the approach as suggested Created 6 years, 5 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 reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 virtual void willStopBeingFullscreenElement() OVERRIDE FINAL; 343 virtual void willStopBeingFullscreenElement() OVERRIDE FINAL;
344 virtual bool isInteractiveContent() const OVERRIDE FINAL; 344 virtual bool isInteractiveContent() const OVERRIDE FINAL;
345 virtual void defaultEventHandler(Event*) OVERRIDE FINAL; 345 virtual void defaultEventHandler(Event*) OVERRIDE FINAL;
346 346
347 // ActiveDOMObject functions. 347 // ActiveDOMObject functions.
348 virtual void stop() OVERRIDE FINAL; 348 virtual void stop() OVERRIDE FINAL;
349 349
350 virtual void updateDisplayState() { } 350 virtual void updateDisplayState() { }
351 351
352 void setReadyState(ReadyState); 352 void setReadyState(ReadyState);
353 void setNetworkState(MediaPlayer::NetworkState); 353 void setNetworkState(blink::WebMediaPlayer::NetworkState);
354 354
355 virtual void mediaPlayerNetworkStateChanged() OVERRIDE FINAL; 355 virtual void mediaPlayerNetworkStateChanged() OVERRIDE FINAL;
356 virtual void mediaPlayerReadyStateChanged() OVERRIDE FINAL; 356 virtual void mediaPlayerReadyStateChanged() OVERRIDE FINAL;
357 virtual void mediaPlayerTimeChanged() OVERRIDE FINAL; 357 virtual void mediaPlayerTimeChanged() OVERRIDE FINAL;
358 virtual void mediaPlayerDurationChanged() OVERRIDE FINAL; 358 virtual void mediaPlayerDurationChanged() OVERRIDE FINAL;
359 virtual void mediaPlayerPlaybackStateChanged() OVERRIDE FINAL; 359 virtual void mediaPlayerPlaybackStateChanged() OVERRIDE FINAL;
360 virtual void mediaPlayerRequestFullscreen() OVERRIDE FINAL; 360 virtual void mediaPlayerRequestFullscreen() OVERRIDE FINAL;
361 virtual void mediaPlayerRequestSeek(double) OVERRIDE FINAL; 361 virtual void mediaPlayerRequestSeek(double) OVERRIDE FINAL;
362 virtual void mediaPlayerRepaint() OVERRIDE FINAL; 362 virtual void mediaPlayerRepaint() OVERRIDE FINAL;
363 virtual void mediaPlayerSizeChanged() OVERRIDE FINAL; 363 virtual void mediaPlayerSizeChanged() OVERRIDE FINAL;
(...skipping 30 matching lines...) Expand all
394 void clearMediaPlayerAndAudioSourceProviderClientWithoutLocking(); 394 void clearMediaPlayerAndAudioSourceProviderClientWithoutLocking();
395 bool havePotentialSourceChild(); 395 bool havePotentialSourceChild();
396 void noneSupported(); 396 void noneSupported();
397 void mediaEngineError(PassRefPtrWillBeRawPtr<MediaError>); 397 void mediaEngineError(PassRefPtrWillBeRawPtr<MediaError>);
398 void cancelPendingEventsAndCallbacks(); 398 void cancelPendingEventsAndCallbacks();
399 void waitForSourceChange(); 399 void waitForSourceChange();
400 void prepareToPlay(); 400 void prepareToPlay();
401 401
402 KURL selectNextSourceChild(ContentType*, String* keySystem, InvalidURLAction ); 402 KURL selectNextSourceChild(ContentType*, String* keySystem, InvalidURLAction );
403 403
404 void mediaLoadingFailed(MediaPlayer::NetworkState); 404 void mediaLoadingFailed(blink::WebMediaPlayer::NetworkState);
405 405
406 // deferred loading (preload=none) 406 // deferred loading (preload=none)
407 bool loadIsDeferred() const; 407 bool loadIsDeferred() const;
408 void deferLoad(); 408 void deferLoad();
409 void cancelDeferredLoad(); 409 void cancelDeferredLoad();
410 void startDeferredLoad(); 410 void startDeferredLoad();
411 void executeDeferredLoad(); 411 void executeDeferredLoad();
412 void deferredLoadTimerFired(Timer<HTMLMediaElement>*); 412 void deferredLoadTimerFired(Timer<HTMLMediaElement>*);
413 413
414 void updateActiveTextTrackCues(double); 414 void updateActiveTextTrackCues(double);
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 inline bool isHTMLMediaElement(const HTMLElement& element) 631 inline bool isHTMLMediaElement(const HTMLElement& element)
632 { 632 {
633 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 633 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
634 } 634 }
635 635
636 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 636 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
637 637
638 } //namespace 638 } //namespace
639 639
640 #endif 640 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/HTMLMediaElement.cpp » ('j') | Source/core/html/HTMLMediaElement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698