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

Side by Side Diff: chrome/browser/safe_browsing/download_feedback.cc

Issue 1870003002: Convert //chrome/browser/safe_browsing from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and address comments 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 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 "chrome/browser/safe_browsing/download_feedback.h" 5 #include "chrome/browser/safe_browsing/download_feedback.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_util_proxy.h" 8 #include "base/files/file_util_proxy.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; 65 scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
66 scoped_refptr<base::TaskRunner> file_task_runner_; 66 scoped_refptr<base::TaskRunner> file_task_runner_;
67 const base::FilePath file_path_; 67 const base::FilePath file_path_;
68 int64_t file_size_; 68 int64_t file_size_;
69 69
70 // The safebrowsing request and response of checking that this binary is 70 // The safebrowsing request and response of checking that this binary is
71 // unsafe. 71 // unsafe.
72 std::string ping_request_; 72 std::string ping_request_;
73 std::string ping_response_; 73 std::string ping_response_;
74 74
75 scoped_ptr<TwoPhaseUploader> uploader_; 75 std::unique_ptr<TwoPhaseUploader> uploader_;
76 76
77 DISALLOW_COPY_AND_ASSIGN(DownloadFeedbackImpl); 77 DISALLOW_COPY_AND_ASSIGN(DownloadFeedbackImpl);
78 }; 78 };
79 79
80 DownloadFeedbackImpl::DownloadFeedbackImpl( 80 DownloadFeedbackImpl::DownloadFeedbackImpl(
81 net::URLRequestContextGetter* request_context_getter, 81 net::URLRequestContextGetter* request_context_getter,
82 base::TaskRunner* file_task_runner, 82 base::TaskRunner* file_task_runner,
83 const base::FilePath& file_path, 83 const base::FilePath& file_path,
84 const std::string& ping_request, 84 const std::string& ping_request,
85 const std::string& ping_response) 85 const std::string& ping_response)
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 return new DownloadFeedbackImpl( 213 return new DownloadFeedbackImpl(
214 request_context_getter, file_task_runner, file_path, ping_request, 214 request_context_getter, file_task_runner, file_path, ping_request,
215 ping_response); 215 ping_response);
216 return DownloadFeedback::factory_->CreateDownloadFeedback( 216 return DownloadFeedback::factory_->CreateDownloadFeedback(
217 request_context_getter, file_task_runner, file_path, ping_request, 217 request_context_getter, file_task_runner, file_path, ping_request,
218 ping_response); 218 ping_response);
219 } 219 }
220 220
221 } // namespace safe_browsing 221 } // namespace safe_browsing
222 222
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/download_feedback.h ('k') | chrome/browser/safe_browsing/download_feedback_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698