1868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Copyright 2013 The Chromium Authors. All rights reserved. 25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file. 45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 57dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch#ifndef CONTENT_RENDERER_MEDIA_PRELOAD_H_ 67dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch#define CONTENT_RENDERER_MEDIA_PRELOAD_H_ 75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 87dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochnamespace content { 95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Used to specify video preload states. They are "hints" to the browser about 115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// how aggressively the browser should load and buffer data. 125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Please see the HTML5 spec for the descriptions of these values: 135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// http://www.w3.org/TR/html5/video.html#attr-media-preload 145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enum values must match the values in WebCore::MediaPlayer::Preload and 165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// there will be assertions at compile time if they do not match. 175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)enum Preload { 185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) NONE, 195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) METADATA, 205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) AUTO, 215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}; 225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 237dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch} // namespace content 245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 257dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch#endif // CONTENT_RENDERER_MEDIA_PRELOAD_H_ 26