OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_BASE_PRELOAD_H_ | 5 #ifndef WEBKIT_MEDIA_PRELOAD_H_ |
6 #define MEDIA_BASE_PRELOAD_H_ | 6 #define WEBKIT_MEDIA_PRELOAD_H_ |
7 | 7 |
8 namespace media { | 8 namespace webkit_media { |
9 | 9 |
10 // Used to specify video preload states. They are "hints" to the browser about | 10 // Used to specify video preload states. They are "hints" to the browser about |
11 // how aggressively the browser should load and buffer data. | 11 // how aggressively the browser should load and buffer data. |
12 // Please see the HTML5 spec for the descriptions of these values: | 12 // Please see the HTML5 spec for the descriptions of these values: |
13 // http://www.w3.org/TR/html5/video.html#attr-media-preload | 13 // http://www.w3.org/TR/html5/video.html#attr-media-preload |
14 // | 14 // |
15 // Enum values must match the values in WebCore::MediaPlayer::Preload and | 15 // Enum values must match the values in WebCore::MediaPlayer::Preload and |
16 // there will be assertions at compile time if they do not match. | 16 // there will be assertions at compile time if they do not match. |
17 enum Preload { | 17 enum Preload { |
18 NONE, | 18 NONE, |
19 METADATA, | 19 METADATA, |
20 AUTO, | 20 AUTO, |
21 }; | 21 }; |
22 | 22 |
23 } // namespace media | 23 } // namespace webkit_media |
24 | 24 |
25 #endif // MEDIA_BASE_PRELOAD_H_ | 25 #endif // WEBKIT_MEDIA_PRELOAD_H_ |
OLD | NEW |