| 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/buffered_resource_loader.h" | 5 #include "webkit/media/buffered_resource_loader.h" |
| 6 | 6 |
| 7 #include "base/format_macros.h" | 7 #include "base/format_macros.h" |
| 8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "media/base/media_log.h" | 10 #include "media/base/media_log.h" |
| 11 #include "net/base/net_errors.h" | 11 #include "net/base/net_errors.h" |
| 12 #include "net/http/http_request_headers.h" | 12 #include "net/http/http_request_headers.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKitPlatformSupport
.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebKitPlatfo
rmSupport.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLError.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLError.
h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLLoaderOptions.h
" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLLoaderOptions.h
" |
| 18 #include "webkit/glue/multipart_response_delegate.h" | 18 #include "webkit/glue/multipart_response_delegate.h" |
| 19 | 19 |
| 20 using WebKit::WebFrame; | 20 using WebKit::WebFrame; |
| 21 using WebKit::WebString; | 21 using WebKit::WebString; |
| 22 using WebKit::WebURLError; | 22 using WebKit::WebURLError; |
| 23 using WebKit::WebURLLoader; | 23 using WebKit::WebURLLoader; |
| 24 using WebKit::WebURLLoaderOptions; | 24 using WebKit::WebURLLoaderOptions; |
| 25 using WebKit::WebURLRequest; | 25 using WebKit::WebURLRequest; |
| 26 using WebKit::WebURLResponse; | 26 using WebKit::WebURLResponse; |
| (...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 if (buffer_.get()) { | 775 if (buffer_.get()) { |
| 776 media_log_->AddEvent( | 776 media_log_->AddEvent( |
| 777 media_log_->CreateBufferedExtentsChangedEvent( | 777 media_log_->CreateBufferedExtentsChangedEvent( |
| 778 offset_ - buffer_->backward_bytes(), | 778 offset_ - buffer_->backward_bytes(), |
| 779 offset_, | 779 offset_, |
| 780 offset_ + buffer_->forward_bytes())); | 780 offset_ + buffer_->forward_bytes())); |
| 781 } | 781 } |
| 782 } | 782 } |
| 783 | 783 |
| 784 } // namespace webkit_media | 784 } // namespace webkit_media |
| OLD | NEW |