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

Side by Side Diff: third_party/WebKit/public/platform/WebMediaPlayer.h

Issue 2289543005: Allow suspension prior to reaching kHaveFutureData. (Closed)
Patch Set: Created 4 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
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 PreloadNone, 81 PreloadNone,
82 PreloadMetaData, 82 PreloadMetaData,
83 PreloadAuto, 83 PreloadAuto,
84 }; 84 };
85 85
86 enum class BufferingStrategy { 86 enum class BufferingStrategy {
87 Normal, 87 Normal,
88 Aggressive, 88 Aggressive,
89 }; 89 };
90 90
91 enum class PlaybackState {
92 Playing,
93 Paused,
94 };
95
91 enum CORSMode { 96 enum CORSMode {
92 CORSModeUnspecified, 97 CORSModeUnspecified,
93 CORSModeAnonymous, 98 CORSModeAnonymous,
94 CORSModeUseCredentials, 99 CORSModeUseCredentials,
95 }; 100 };
96 101
97 // Reported to UMA. Do not change existing values. 102 // Reported to UMA. Do not change existing values.
98 enum LoadType { 103 enum LoadType {
99 LoadTypeURL = 0, 104 LoadTypeURL = 0,
100 LoadTypeMediaSource = 1, 105 LoadTypeMediaSource = 1,
(...skipping 13 matching lines...) Expand all
114 virtual void pause() = 0; 119 virtual void pause() = 0;
115 virtual bool supportsSave() const = 0; 120 virtual bool supportsSave() const = 0;
116 virtual void seek(double seconds) = 0; 121 virtual void seek(double seconds) = 0;
117 virtual void setRate(double) = 0; 122 virtual void setRate(double) = 0;
118 virtual void setVolume(double) = 0; 123 virtual void setVolume(double) = 0;
119 124
120 virtual void requestRemotePlayback() { } 125 virtual void requestRemotePlayback() { }
121 virtual void requestRemotePlaybackControl() { } 126 virtual void requestRemotePlaybackControl() { }
122 virtual void setPreload(Preload) { } 127 virtual void setPreload(Preload) { }
123 virtual void setBufferingStrategy(BufferingStrategy) {} 128 virtual void setBufferingStrategy(BufferingStrategy) {}
129 virtual void setPlaybackState(PlaybackState) {}
124 virtual WebTimeRanges buffered() const = 0; 130 virtual WebTimeRanges buffered() const = 0;
125 virtual WebTimeRanges seekable() const = 0; 131 virtual WebTimeRanges seekable() const = 0;
126 132
127 // Attempts to switch the audio output device. 133 // Attempts to switch the audio output device.
128 // Implementations of setSinkId take ownership of the WebSetSinkCallbacks 134 // Implementations of setSinkId take ownership of the WebSetSinkCallbacks
129 // object. 135 // object.
130 // Note also that setSinkId implementations must make sure that all 136 // Note also that setSinkId implementations must make sure that all
131 // methods of the WebSetSinkCallbacks object, including constructors and 137 // methods of the WebSetSinkCallbacks object, including constructors and
132 // destructors, run in the same thread where the object is created 138 // destructors, run in the same thread where the object is created
133 // (i.e., the blink thread). 139 // (i.e., the blink thread).
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 virtual void exitedFullscreen() { } 204 virtual void exitedFullscreen() { }
199 205
200 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac kIds) { } 206 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac kIds) { }
201 // |selectedTrackId| is null if no track is selected. 207 // |selectedTrackId| is null if no track is selected.
202 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } 208 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { }
203 }; 209 };
204 210
205 } // namespace blink 211 } // namespace blink
206 212
207 #endif 213 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698