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

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

Issue 2399463007: AssociatedURLLoader shouldn't derive from WebURLLoader (Closed)
Patch Set: Rebase Created 4 years, 2 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/mock_webassociatedurlloader.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 "third_party/WebKit/public/platform/WebURLLoader.h" 9 #include "third_party/WebKit/public/web/WebAssociatedURLLoader.h"
10 10
11 namespace media { 11 namespace media {
12 12
13 ActiveLoader::ActiveLoader(std::unique_ptr<blink::WebURLLoader> loader) 13 ActiveLoader::ActiveLoader(
14 std::unique_ptr<blink::WebAssociatedURLLoader> loader)
14 : loader_(std::move(loader)), deferred_(false) {} 15 : loader_(std::move(loader)), deferred_(false) {}
15 16
16 ActiveLoader::~ActiveLoader() { 17 ActiveLoader::~ActiveLoader() {
17 loader_->cancel(); 18 loader_->cancel();
18 } 19 }
19 20
20 void ActiveLoader::SetDeferred(bool deferred) { 21 void ActiveLoader::SetDeferred(bool deferred) {
21 deferred_ = deferred; 22 deferred_ = deferred;
22 loader_->setDefersLoading(deferred); 23 loader_->setDefersLoading(deferred);
23 } 24 }
24 25
25 } // namespace media 26 } // namespace media
OLDNEW
« no previous file with comments | « media/blink/active_loader.h ('k') | media/blink/mock_webassociatedurlloader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698