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

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

Issue 1904253002: Convert //media/blink from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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" 9 #include "media/blink/buffered_resource_loader.h"
10 #include "third_party/WebKit/public/platform/WebURLLoader.h" 10 #include "third_party/WebKit/public/platform/WebURLLoader.h"
11 11
12 namespace media { 12 namespace media {
13 13
14 ActiveLoader::ActiveLoader(scoped_ptr<blink::WebURLLoader> loader) 14 ActiveLoader::ActiveLoader(std::unique_ptr<blink::WebURLLoader> loader)
15 : loader_(std::move(loader)), deferred_(false) {} 15 : loader_(std::move(loader)), deferred_(false) {}
16 16
17 ActiveLoader::~ActiveLoader() { 17 ActiveLoader::~ActiveLoader() {
18 loader_->cancel(); 18 loader_->cancel();
19 } 19 }
20 20
21 void ActiveLoader::SetDeferred(bool deferred) { 21 void ActiveLoader::SetDeferred(bool deferred) {
22 deferred_ = deferred; 22 deferred_ = deferred;
23 loader_->setDefersLoading(deferred); 23 loader_->setDefersLoading(deferred);
24 } 24 }
25 25
26 } // namespace media 26 } // 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