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

Side by Side Diff: webkit/media/buffered_resource_loader.cc

Issue 10837118: Dead code elimination: scythe.chrome_functions:segment.path %media% edition, round 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/bits.h" 7 #include "base/bits.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/format_macros.h" 9 #include "base/format_macros.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 } 315 }
316 316
317 int64 BufferedResourceLoader::instance_size() { 317 int64 BufferedResourceLoader::instance_size() {
318 return instance_size_; 318 return instance_size_;
319 } 319 }
320 320
321 bool BufferedResourceLoader::range_supported() { 321 bool BufferedResourceLoader::range_supported() {
322 return range_supported_; 322 return range_supported_;
323 } 323 }
324 324
325 const GURL& BufferedResourceLoader::url() {
326 return url_;
327 }
328
329 ///////////////////////////////////////////////////////////////////////////// 325 /////////////////////////////////////////////////////////////////////////////
330 // WebKit::WebURLLoaderClient implementation. 326 // WebKit::WebURLLoaderClient implementation.
331 void BufferedResourceLoader::willSendRequest( 327 void BufferedResourceLoader::willSendRequest(
332 WebURLLoader* loader, 328 WebURLLoader* loader,
333 WebURLRequest& newRequest, 329 WebURLRequest& newRequest,
334 const WebURLResponse& redirectResponse) { 330 const WebURLResponse& redirectResponse) {
335 331
336 // The load may have been stopped and |start_cb| is destroyed. 332 // The load may have been stopped and |start_cb| is destroyed.
337 // In this case we shouldn't do anything. 333 // In this case we shouldn't do anything.
338 if (start_cb_.is_null()) { 334 if (start_cb_.is_null()) {
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 795
800 void BufferedResourceLoader::Log() { 796 void BufferedResourceLoader::Log() {
801 media_log_->AddEvent( 797 media_log_->AddEvent(
802 media_log_->CreateBufferedExtentsChangedEvent( 798 media_log_->CreateBufferedExtentsChangedEvent(
803 offset_ - buffer_.backward_bytes(), 799 offset_ - buffer_.backward_bytes(),
804 offset_, 800 offset_,
805 offset_ + buffer_.forward_bytes())); 801 offset_ + buffer_.forward_bytes()));
806 } 802 }
807 803
808 } // namespace webkit_media 804 } // namespace webkit_media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698