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

Side by Side Diff: content/browser/loader/layered_resource_handler.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 "content/browser/loader/layered_resource_handler.h" 5 #include "content/browser/loader/layered_resource_handler.h"
6 6
7 #include <utility>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 10
9 namespace content { 11 namespace content {
10 12
11 LayeredResourceHandler::LayeredResourceHandler( 13 LayeredResourceHandler::LayeredResourceHandler(
12 net::URLRequest* request, 14 net::URLRequest* request,
13 scoped_ptr<ResourceHandler> next_handler) 15 scoped_ptr<ResourceHandler> next_handler)
14 : ResourceHandler(request), 16 : ResourceHandler(request), next_handler_(std::move(next_handler)) {}
15 next_handler_(next_handler.Pass()) {
16 }
17 17
18 LayeredResourceHandler::~LayeredResourceHandler() { 18 LayeredResourceHandler::~LayeredResourceHandler() {
19 } 19 }
20 20
21 void LayeredResourceHandler::SetController(ResourceController* controller) { 21 void LayeredResourceHandler::SetController(ResourceController* controller) {
22 ResourceHandler::SetController(controller); 22 ResourceHandler::SetController(controller);
23 23
24 // Pass the controller down to the next handler. This method is intended to 24 // Pass the controller down to the next handler. This method is intended to
25 // be overriden by subclasses of LayeredResourceHandler that need to insert a 25 // be overriden by subclasses of LayeredResourceHandler that need to insert a
26 // different ResourceController. 26 // different ResourceController.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 DCHECK(next_handler_.get()); 74 DCHECK(next_handler_.get());
75 next_handler_->OnResponseCompleted(status, security_info, defer); 75 next_handler_->OnResponseCompleted(status, security_info, defer);
76 } 76 }
77 77
78 void LayeredResourceHandler::OnDataDownloaded(int bytes_downloaded) { 78 void LayeredResourceHandler::OnDataDownloaded(int bytes_downloaded) {
79 DCHECK(next_handler_.get()); 79 DCHECK(next_handler_.get());
80 next_handler_->OnDataDownloaded(bytes_downloaded); 80 next_handler_->OnDataDownloaded(bytes_downloaded);
81 } 81 }
82 82
83 } // namespace content 83 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/detachable_resource_handler.cc ('k') | content/browser/loader/mime_type_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698