Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(555)

Side by Side Diff: content/renderer/media/buffered_resource_loader.cc

Issue 224093011: Move DataSourceHost to BufferedDataSourceHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows release build. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/renderer/media/buffered_resource_loader.h ('k') | content/renderer/media/webmediaplayer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698