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

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

Issue 2909123003: Replace deprecated base::NonThreadSafe in chrome/browser/safe_browsing in favor of SequenceChecker. (Closed)
Patch Set: Created 3 years, 6 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 | « chrome/browser/safe_browsing/certificate_reporting_service_test_utils.cc ('k') | no next file » | 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 #ifndef CHROME_BROWSER_SAFE_BROWSING_DOWNLOAD_FEEDBACK_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_DOWNLOAD_FEEDBACK_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_DOWNLOAD_FEEDBACK_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_DOWNLOAD_FEEDBACK_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/threading/non_thread_safe.h" 14 #include "base/sequence_checker.h"
15 #include "chrome/browser/safe_browsing/two_phase_uploader.h" 15 #include "chrome/browser/safe_browsing/two_phase_uploader.h"
16 16
17 namespace safe_browsing { 17 namespace safe_browsing {
18 18
19 class DownloadFeedbackFactory; 19 class DownloadFeedbackFactory;
20 20
21 // Handles the uploading of a single downloaded binary to the safebrowsing 21 // Handles the uploading of a single downloaded binary to the safebrowsing
22 // download feedback service. 22 // download feedback service.
23 class DownloadFeedback : public base::NonThreadSafe { 23 class DownloadFeedback {
Nathan Parker 2017/05/30 17:16:47 NonThreadSafe was removed, but no SequenceChecker
gab 2017/05/30 21:54:00 Forgot to say in CL description but I found a few
Nathan Parker 2017/06/01 18:41:44 I'm confused -- Why not add DCHECK_CALLED_ON_VALID
24 public: 24 public:
25 // Takes ownership of the file pointed to be |file_path|, it will be deleted 25 // Takes ownership of the file pointed to be |file_path|, it will be deleted
26 // when the DownloadFeedback is destructed. 26 // when the DownloadFeedback is destructed.
27 static std::unique_ptr<DownloadFeedback> Create( 27 static std::unique_ptr<DownloadFeedback> Create(
28 net::URLRequestContextGetter* request_context_getter, 28 net::URLRequestContextGetter* request_context_getter,
29 base::TaskRunner* file_task_runner, 29 base::TaskRunner* file_task_runner,
30 const base::FilePath& file_path, 30 const base::FilePath& file_path,
31 const std::string& ping_request, 31 const std::string& ping_request,
32 const std::string& ping_response); 32 const std::string& ping_response);
33 33
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 net::URLRequestContextGetter* request_context_getter, 70 net::URLRequestContextGetter* request_context_getter,
71 base::TaskRunner* file_task_runner, 71 base::TaskRunner* file_task_runner,
72 const base::FilePath& file_path, 72 const base::FilePath& file_path,
73 const std::string& ping_request, 73 const std::string& ping_request,
74 const std::string& ping_response) = 0; 74 const std::string& ping_response) = 0;
75 }; 75 };
76 76
77 } // namespace safe_browsing 77 } // namespace safe_browsing
78 78
79 #endif // CHROME_BROWSER_SAFE_BROWSING_DOWNLOAD_FEEDBACK_H_ 79 #endif // CHROME_BROWSER_SAFE_BROWSING_DOWNLOAD_FEEDBACK_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/certificate_reporting_service_test_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698