When Retrier succeeds, record errors it encountered.
[chromium-blink-merge.git] / webkit / media / active_loader.cc
blob02d098a3163ba4af672f164d3b7dabe71455ce9e
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
3 // found in the LICENSE file.
5 #include "webkit/media/active_loader.h"
7 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLLoader.h"
8 #include "webkit/media/buffered_resource_loader.h"
10 namespace webkit_media {
12 ActiveLoader::ActiveLoader(scoped_ptr<WebKit::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 webkit_media