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

Side by Side Diff: webkit/api/src/WebMediaPlayerClientImpl.h

Issue 199037: Buffered time ranges for <video> (Closed)
Patch Set: DEPS Created 11 years, 3 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 | « webkit/api/public/WebMediaPlayer.h ('k') | webkit/api/src/WebMediaPlayerClientImpl.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual float currentTime() const; 75 virtual float currentTime() const;
76 virtual void seek(float time); 76 virtual void seek(float time);
77 virtual bool seeking() const; 77 virtual bool seeking() const;
78 virtual void setEndTime(float time); 78 virtual void setEndTime(float time);
79 virtual void setRate(float); 79 virtual void setRate(float);
80 virtual bool paused() const; 80 virtual bool paused() const;
81 virtual void setVolume(float); 81 virtual void setVolume(float);
82 virtual WebCore::MediaPlayer::NetworkState networkState() const; 82 virtual WebCore::MediaPlayer::NetworkState networkState() const;
83 virtual WebCore::MediaPlayer::ReadyState readyState() const; 83 virtual WebCore::MediaPlayer::ReadyState readyState() const;
84 virtual float maxTimeSeekable() const; 84 virtual float maxTimeSeekable() const;
85 virtual float maxTimeBuffered() const; 85 virtual WTF::PassRefPtr<WebCore::TimeRanges> buffered() const;
86 virtual int dataRate() const; 86 virtual int dataRate() const;
87 virtual void setAutobuffer(bool); 87 virtual void setAutobuffer(bool);
88 virtual bool totalBytesKnown() const; 88 virtual bool totalBytesKnown() const;
89 virtual unsigned totalBytes() const; 89 virtual unsigned totalBytes() const;
90 virtual unsigned bytesLoaded() const; 90 virtual unsigned bytesLoaded() const;
91 virtual void setSize(const WebCore::IntSize&); 91 virtual void setSize(const WebCore::IntSize&);
92 virtual void paint(WebCore::GraphicsContext*, const WebCore::IntRect&); 92 virtual void paint(WebCore::GraphicsContext*, const WebCore::IntRect&);
93 virtual bool hasSingleSecurityOrigin() const; 93 virtual bool hasSingleSecurityOrigin() const;
94 virtual WebCore::MediaPlayer::MovieLoadType movieLoadType() const; 94 virtual WebCore::MediaPlayer::MovieLoadType movieLoadType() const;
95 95
96 private: 96 private:
97 WebMediaPlayerClientImpl(); 97 WebMediaPlayerClientImpl();
98 98
99 static WebCore::MediaPlayerPrivateInterface* create(WebCore::MediaPlayer*); 99 static WebCore::MediaPlayerPrivateInterface* create(WebCore::MediaPlayer*);
100 static void getSupportedTypes(WTF::HashSet<WebCore::String>&); 100 static void getSupportedTypes(WTF::HashSet<WebCore::String>&);
101 static WebCore::MediaPlayer::SupportsType supportsType( 101 static WebCore::MediaPlayer::SupportsType supportsType(
102 const WebCore::String& type, const WebCore::String& codecs); 102 const WebCore::String& type, const WebCore::String& codecs);
103 103
104 WebCore::MediaPlayer* m_mediaPlayer; 104 WebCore::MediaPlayer* m_mediaPlayer;
105 OwnPtr<WebMediaPlayer> m_webMediaPlayer; 105 OwnPtr<WebMediaPlayer> m_webMediaPlayer;
106 }; 106 };
107 107
108 } // namespace WebKit 108 } // namespace WebKit
109 109
110 #endif 110 #endif
111 111
112 #endif 112 #endif
OLDNEW
« no previous file with comments | « webkit/api/public/WebMediaPlayer.h ('k') | webkit/api/src/WebMediaPlayerClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698