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 "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 |
OLD | NEW |