| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/renderer/media/buffered_resource_loader.h" | 5 #include "content/renderer/media/buffered_resource_loader.h" |
| 6 | 6 |
| 7 #include "base/bits.h" | 7 #include "base/bits.h" |
| 8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
| 12 #include "content/public/common/url_constants.h" |
| 12 #include "content/renderer/media/cache_util.h" | 13 #include "content/renderer/media/cache_util.h" |
| 13 #include "media/base/media_log.h" | 14 #include "media/base/media_log.h" |
| 14 #include "net/http/http_byte_range.h" | 15 #include "net/http/http_byte_range.h" |
| 15 #include "net/http/http_request_headers.h" | 16 #include "net/http/http_request_headers.h" |
| 16 #include "third_party/WebKit/public/platform/WebString.h" | 17 #include "third_party/WebKit/public/platform/WebString.h" |
| 17 #include "third_party/WebKit/public/platform/WebURLError.h" | 18 #include "third_party/WebKit/public/platform/WebURLError.h" |
| 18 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 19 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
| 19 #include "third_party/WebKit/public/web/WebKit.h" | 20 #include "third_party/WebKit/public/web/WebKit.h" |
| 20 #include "third_party/WebKit/public/web/WebURLLoaderOptions.h" | 21 #include "third_party/WebKit/public/web/WebURLLoaderOptions.h" |
| 21 | 22 |
| (...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 776 | 777 |
| 777 void BufferedResourceLoader::Log() { | 778 void BufferedResourceLoader::Log() { |
| 778 media_log_->AddEvent( | 779 media_log_->AddEvent( |
| 779 media_log_->CreateBufferedExtentsChangedEvent( | 780 media_log_->CreateBufferedExtentsChangedEvent( |
| 780 offset_ - buffer_.backward_bytes(), | 781 offset_ - buffer_.backward_bytes(), |
| 781 offset_, | 782 offset_, |
| 782 offset_ + buffer_.forward_bytes())); | 783 offset_ + buffer_.forward_bytes())); |
| 783 } | 784 } |
| 784 | 785 |
| 785 } // namespace content | 786 } // namespace content |
| OLD | NEW |