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

Side by Side Diff: media/blink/active_loader.cc

Issue 2272163002: Delete now deprecated BufferedDataSource and friends. (Closed)
Patch Set: Delete BufferedResourceLoader too. Created 4 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
« no previous file with comments | « media/blink/active_loader.h ('k') | media/blink/buffered_data_source.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "media/blink/active_loader.h" 5 #include "media/blink/active_loader.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "media/blink/buffered_resource_loader.h"
10 #include "third_party/WebKit/public/platform/WebURLLoader.h" 9 #include "third_party/WebKit/public/platform/WebURLLoader.h"
11 10
12 namespace media { 11 namespace media {
13 12
14 ActiveLoader::ActiveLoader(std::unique_ptr<blink::WebURLLoader> loader) 13 ActiveLoader::ActiveLoader(std::unique_ptr<blink::WebURLLoader> loader)
15 : loader_(std::move(loader)), deferred_(false) {} 14 : loader_(std::move(loader)), deferred_(false) {}
16 15
17 ActiveLoader::~ActiveLoader() { 16 ActiveLoader::~ActiveLoader() {
18 loader_->cancel(); 17 loader_->cancel();
19 } 18 }
20 19
21 void ActiveLoader::SetDeferred(bool deferred) { 20 void ActiveLoader::SetDeferred(bool deferred) {
22 deferred_ = deferred; 21 deferred_ = deferred;
23 loader_->setDefersLoading(deferred); 22 loader_->setDefersLoading(deferred);
24 } 23 }
25 24
26 } // namespace media 25 } // namespace media
OLDNEW
« no previous file with comments | « media/blink/active_loader.h ('k') | media/blink/buffered_data_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698