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

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: remove include too 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"
15 #include "chrome/browser/safe_browsing/two_phase_uploader.h" 14 #include "chrome/browser/safe_browsing/two_phase_uploader.h"
16 15
17 namespace safe_browsing { 16 namespace safe_browsing {
18 17
19 class DownloadFeedbackFactory; 18 class DownloadFeedbackFactory;
20 19
21 // Handles the uploading of a single downloaded binary to the safebrowsing 20 // Handles the uploading of a single downloaded binary to the safebrowsing
22 // download feedback service. 21 // download feedback service.
23 class DownloadFeedback : public base::NonThreadSafe { 22 class DownloadFeedback {
24 public: 23 public:
25 // Takes ownership of the file pointed to be |file_path|, it will be deleted 24 // Takes ownership of the file pointed to be |file_path|, it will be deleted
26 // when the DownloadFeedback is destructed. 25 // when the DownloadFeedback is destructed.
27 static std::unique_ptr<DownloadFeedback> Create( 26 static std::unique_ptr<DownloadFeedback> Create(
28 net::URLRequestContextGetter* request_context_getter, 27 net::URLRequestContextGetter* request_context_getter,
29 base::TaskRunner* file_task_runner, 28 base::TaskRunner* file_task_runner,
30 const base::FilePath& file_path, 29 const base::FilePath& file_path,
31 const std::string& ping_request, 30 const std::string& ping_request,
32 const std::string& ping_response); 31 const std::string& ping_response);
33 32
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 net::URLRequestContextGetter* request_context_getter, 69 net::URLRequestContextGetter* request_context_getter,
71 base::TaskRunner* file_task_runner, 70 base::TaskRunner* file_task_runner,
72 const base::FilePath& file_path, 71 const base::FilePath& file_path,
73 const std::string& ping_request, 72 const std::string& ping_request,
74 const std::string& ping_response) = 0; 73 const std::string& ping_response) = 0;
75 }; 74 };
76 75
77 } // namespace safe_browsing 76 } // namespace safe_browsing
78 77
79 #endif // CHROME_BROWSER_SAFE_BROWSING_DOWNLOAD_FEEDBACK_H_ 78 #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