Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / media / blink / active_loader.cc
blob2f1e084ebcaa9f8a0c15007a7466edd1cc49f217
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
3 // found in the LICENSE file.
5 #include "media/blink/active_loader.h"
7 #include "media/blink/buffered_resource_loader.h"
8 #include "third_party/WebKit/public/platform/WebURLLoader.h"
10 namespace media {
12 ActiveLoader::ActiveLoader(scoped_ptr<blink::WebURLLoader> loader)
13 : loader_(loader.Pass()),
14 deferred_(false) {
17 ActiveLoader::~ActiveLoader() {
18 loader_->cancel();
21 void ActiveLoader::SetDeferred(bool deferred) {
22 deferred_ = deferred;
23 loader_->setDefersLoading(deferred);
26 } // namespace media