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 #include "webkit/media/simple_data_source.h" | 5 #include "webkit/media/simple_data_source.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
10 #include "media/base/filter_host.h" | 10 #include "media/base/filter_host.h" |
11 #include "media/base/media_log.h" | 11 #include "media/base/media_log.h" |
12 #include "net/base/data_url.h" | 12 #include "net/base/data_url.h" |
13 #include "net/base/load_flags.h" | 13 #include "net/base/load_flags.h" |
14 #include "net/http/http_request_headers.h" | 14 #include "net/http/http_request_headers.h" |
15 #include "net/url_request/url_request_status.h" | 15 #include "net/url_request/url_request_status.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKitPlatformSupport
.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebKitPlatfo
rmSupport.h" |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLLoaderOptions.h
" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLLoaderOptions.h
" |
20 #include "webkit/media/web_data_source_factory.h" | 20 #include "webkit/media/web_data_source_factory.h" |
21 | 21 |
22 using WebKit::WebString; | 22 using WebKit::WebString; |
23 using WebKit::WebURLLoaderOptions; | 23 using WebKit::WebURLLoaderOptions; |
24 | 24 |
25 namespace webkit_media { | 25 namespace webkit_media { |
26 | 26 |
27 static const char kDataScheme[] = "data"; | 27 static const char kDataScheme[] = "data"; |
28 | 28 |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 } | 349 } |
350 | 350 |
351 void SimpleDataSource::UpdateHostState() { | 351 void SimpleDataSource::UpdateHostState() { |
352 if (host()) { | 352 if (host()) { |
353 host()->SetTotalBytes(size_); | 353 host()->SetTotalBytes(size_); |
354 host()->SetBufferedBytes(size_); | 354 host()->SetBufferedBytes(size_); |
355 } | 355 } |
356 } | 356 } |
357 | 357 |
358 } // namespace webkit_media | 358 } // namespace webkit_media |
OLD | NEW |