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 WEBKIT_GLUE_MEDIA_BUFFERED_RESOURCE_LOADER_H_ | 5 #ifndef WEBKIT_MEDIA_BUFFERED_RESOURCE_LOADER_H_ |
6 #define WEBKIT_GLUE_MEDIA_BUFFERED_RESOURCE_LOADER_H_ | 6 #define WEBKIT_MEDIA_BUFFERED_RESOURCE_LOADER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/timer.h" | 12 #include "base/timer.h" |
13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
14 #include "media/base/seekable_buffer.h" | 14 #include "media/base/seekable_buffer.h" |
15 #include "net/base/file_stream.h" | 15 #include "net/base/file_stream.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLLoader.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLLoader.h" |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLLoaderClient.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLLoaderClient.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h" |
20 #include "webkit/glue/media/web_data_source.h" | 20 #include "webkit/media/web_data_source.h" |
21 #include "webkit/glue/webmediaplayer_impl.h" | 21 #include "webkit/media/webmediaplayer_impl.h" |
22 | 22 |
23 namespace media { | 23 namespace media { |
24 class MediaLog; | 24 class MediaLog; |
25 } | 25 } |
26 | 26 |
27 namespace webkit_glue { | 27 namespace webkit_media { |
28 | 28 |
29 const int64 kPositionNotSpecified = -1; | 29 const int64 kPositionNotSpecified = -1; |
30 | 30 |
31 const char kHttpScheme[] = "http"; | 31 const char kHttpScheme[] = "http"; |
32 const char kHttpsScheme[] = "https"; | 32 const char kHttpsScheme[] = "https"; |
33 const char kDataScheme[] = "data"; | 33 const char kDataScheme[] = "data"; |
34 | 34 |
35 // This class works inside demuxer thread and render thread. It contains a | 35 // This class works inside demuxer thread and render thread. It contains a |
36 // WebURLLoader and does the actual resource loading. This object does | 36 // WebURLLoader and does the actual resource loading. This object does |
37 // buffering internally, it defers the resource loading if buffer is full | 37 // buffering internally, it defers the resource loading if buffer is full |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 int bitrate_; | 292 int bitrate_; |
293 | 293 |
294 // Playback rate of the media. | 294 // Playback rate of the media. |
295 float playback_rate_; | 295 float playback_rate_; |
296 | 296 |
297 scoped_refptr<media::MediaLog> media_log_; | 297 scoped_refptr<media::MediaLog> media_log_; |
298 | 298 |
299 DISALLOW_COPY_AND_ASSIGN(BufferedResourceLoader); | 299 DISALLOW_COPY_AND_ASSIGN(BufferedResourceLoader); |
300 }; | 300 }; |
301 | 301 |
302 } // namespace webkit_glue | 302 } // namespace webkit_media |
303 | 303 |
304 #endif // WEBKIT_GLUE_MEDIA_BUFFERED_RESOURCE_LOADER_H_ | 304 #endif // WEBKIT_MEDIA_BUFFERED_RESOURCE_LOADER_H_ |
OLD | NEW |