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

Side by Side Diff: chrome/browser/download/chrome_download_manager_delegate.h

Issue 2029903002: Add token field to ClientSafeBrowsingReportReqeust (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweak comments Created 4 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
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 #ifndef CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_
6 #define CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ 6 #define CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 typedef std::vector<content::DownloadIdCallback> IdCallbackVector; 130 typedef std::vector<content::DownloadIdCallback> IdCallbackVector;
131 131
132 // content::NotificationObserver implementation. 132 // content::NotificationObserver implementation.
133 void Observe(int type, 133 void Observe(int type,
134 const content::NotificationSource& source, 134 const content::NotificationSource& source,
135 const content::NotificationDetails& details) override; 135 const content::NotificationDetails& details) override;
136 136
137 // Callback function after the DownloadProtectionService completes. 137 // Callback function after the DownloadProtectionService completes.
138 void CheckClientDownloadDone( 138 void CheckClientDownloadDone(
139 uint32_t download_id, 139 uint32_t download_id,
140 safe_browsing::DownloadProtectionService::DownloadCheckResult result); 140 safe_browsing::DownloadProtectionService::DownloadCheckResult result,
141 const std::string& token);
141 142
142 // Internal gateways for ShouldCompleteDownload(). 143 // Internal gateways for ShouldCompleteDownload().
143 bool IsDownloadReadyForCompletion( 144 bool IsDownloadReadyForCompletion(
144 content::DownloadItem* item, 145 content::DownloadItem* item,
145 const base::Closure& internal_complete_callback); 146 const base::Closure& internal_complete_callback);
146 void ShouldCompleteDownloadInternal( 147 void ShouldCompleteDownloadInternal(
147 uint32_t download_id, 148 uint32_t download_id,
148 const base::Closure& user_complete_callback); 149 const base::Closure& user_complete_callback);
149 150
150 void SetNextId(uint32_t id); 151 void SetNextId(uint32_t id);
(...skipping 21 matching lines...) Expand all
172 #endif 173 #endif
173 174
174 content::NotificationRegistrar registrar_; 175 content::NotificationRegistrar registrar_;
175 176
176 base::WeakPtrFactory<ChromeDownloadManagerDelegate> weak_ptr_factory_; 177 base::WeakPtrFactory<ChromeDownloadManagerDelegate> weak_ptr_factory_;
177 178
178 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate); 179 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate);
179 }; 180 };
180 181
181 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ 182 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698