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

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

Issue 2689323002: Media: Delete Pause-To-Buffer. (Closed)
Patch Set: Rebase. 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 | « third_party/WebKit/Source/core/html/HTMLVideoElementTest.cpp ('k') | no next file » | 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 ReadyStateHaveFutureData, 76 ReadyStateHaveFutureData,
77 ReadyStateHaveEnoughData, 77 ReadyStateHaveEnoughData,
78 }; 78 };
79 79
80 enum Preload { 80 enum Preload {
81 PreloadNone, 81 PreloadNone,
82 PreloadMetaData, 82 PreloadMetaData,
83 PreloadAuto, 83 PreloadAuto,
84 }; 84 };
85 85
86 enum class BufferingStrategy {
87 Normal,
88 Aggressive,
89 };
90
91 enum CORSMode { 86 enum CORSMode {
92 CORSModeUnspecified, 87 CORSModeUnspecified,
93 CORSModeAnonymous, 88 CORSModeAnonymous,
94 CORSModeUseCredentials, 89 CORSModeUseCredentials,
95 }; 90 };
96 91
97 // Reported to UMA. Do not change existing values. 92 // Reported to UMA. Do not change existing values.
98 enum LoadType { 93 enum LoadType {
99 LoadTypeURL = 0, 94 LoadTypeURL = 0,
100 LoadTypeMediaSource = 1, 95 LoadTypeMediaSource = 1,
(...skipping 22 matching lines...) Expand all
123 virtual bool supportsSave() const = 0; 118 virtual bool supportsSave() const = 0;
124 virtual void seek(double seconds) = 0; 119 virtual void seek(double seconds) = 0;
125 virtual void setRate(double) = 0; 120 virtual void setRate(double) = 0;
126 virtual void setVolume(double) = 0; 121 virtual void setVolume(double) = 0;
127 122
128 virtual void requestRemotePlayback() {} 123 virtual void requestRemotePlayback() {}
129 virtual void requestRemotePlaybackControl() {} 124 virtual void requestRemotePlaybackControl() {}
130 virtual void requestRemotePlaybackStop() {} 125 virtual void requestRemotePlaybackStop() {}
131 virtual void requestRemotePlaybackDisabled(bool disabled) {} 126 virtual void requestRemotePlaybackDisabled(bool disabled) {}
132 virtual void setPreload(Preload) {} 127 virtual void setPreload(Preload) {}
133 virtual void setBufferingStrategy(BufferingStrategy) {}
134 virtual WebTimeRanges buffered() const = 0; 128 virtual WebTimeRanges buffered() const = 0;
135 virtual WebTimeRanges seekable() const = 0; 129 virtual WebTimeRanges seekable() const = 0;
136 130
137 // Attempts to switch the audio output device. 131 // Attempts to switch the audio output device.
138 // Implementations of setSinkId take ownership of the WebSetSinkCallbacks 132 // Implementations of setSinkId take ownership of the WebSetSinkCallbacks
139 // object. 133 // object.
140 // Note also that setSinkId implementations must make sure that all 134 // Note also that setSinkId implementations must make sure that all
141 // methods of the WebSetSinkCallbacks object, including constructors and 135 // methods of the WebSetSinkCallbacks object, including constructors and
142 // destructors, run in the same thread where the object is created 136 // destructors, run in the same thread where the object is created
143 // (i.e., the blink thread). 137 // (i.e., the blink thread).
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 276
283 virtual void enabledAudioTracksChanged( 277 virtual void enabledAudioTracksChanged(
284 const WebVector<TrackId>& enabledTrackIds) {} 278 const WebVector<TrackId>& enabledTrackIds) {}
285 // |selectedTrackId| is null if no track is selected. 279 // |selectedTrackId| is null if no track is selected.
286 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {} 280 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {}
287 }; 281 };
288 282
289 } // namespace blink 283 } // namespace blink
290 284
291 #endif 285 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLVideoElementTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698