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

Side by Side Diff: content/test/test_navigation_url_loader.cc

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent 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
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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/test/test_navigation_url_loader.h" 5 #include "content/test/test_navigation_url_loader.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "content/browser/loader/navigation_url_loader_delegate.h" 9 #include "content/browser/loader/navigation_url_loader_delegate.h"
10 #include "content/public/browser/stream_handle.h" 10 #include "content/public/browser/stream_handle.h"
11 #include "content/public/common/resource_response.h" 11 #include "content/public/common/resource_response.h"
12 #include "net/url_request/redirect_info.h" 12 #include "net/url_request/redirect_info.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 TestNavigationURLLoader::TestNavigationURLLoader( 16 TestNavigationURLLoader::TestNavigationURLLoader(
17 scoped_ptr<NavigationRequestInfo> request_info, 17 std::unique_ptr<NavigationRequestInfo> request_info,
18 NavigationURLLoaderDelegate* delegate) 18 NavigationURLLoaderDelegate* delegate)
19 : request_info_(std::move(request_info)), 19 : request_info_(std::move(request_info)),
20 delegate_(delegate), 20 delegate_(delegate),
21 redirect_count_(0), 21 redirect_count_(0),
22 response_proceeded_(false) {} 22 response_proceeded_(false) {}
23 23
24 void TestNavigationURLLoader::FollowRedirect() { 24 void TestNavigationURLLoader::FollowRedirect() {
25 redirect_count_++; 25 redirect_count_++;
26 } 26 }
27 27
(...skipping 16 matching lines...) Expand all
44 } 44 }
45 45
46 void TestNavigationURLLoader::CallOnRequestRedirected( 46 void TestNavigationURLLoader::CallOnRequestRedirected(
47 const net::RedirectInfo& redirect_info, 47 const net::RedirectInfo& redirect_info,
48 const scoped_refptr<ResourceResponse>& response) { 48 const scoped_refptr<ResourceResponse>& response) {
49 delegate_->OnRequestRedirected(redirect_info, response); 49 delegate_->OnRequestRedirected(redirect_info, response);
50 } 50 }
51 51
52 void TestNavigationURLLoader::CallOnResponseStarted( 52 void TestNavigationURLLoader::CallOnResponseStarted(
53 const scoped_refptr<ResourceResponse>& response, 53 const scoped_refptr<ResourceResponse>& response,
54 scoped_ptr<StreamHandle> body) { 54 std::unique_ptr<StreamHandle> body) {
55 delegate_->OnResponseStarted(response, std::move(body)); 55 delegate_->OnResponseStarted(response, std::move(body));
56 } 56 }
57 57
58 TestNavigationURLLoader::~TestNavigationURLLoader() {} 58 TestNavigationURLLoader::~TestNavigationURLLoader() {}
59 59
60 } // namespace content 60 } // namespace content
OLDNEW
« no previous file with comments | « content/test/test_navigation_url_loader.h ('k') | content/test/test_navigation_url_loader_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698