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

Unified Diff: content/public/browser/download_manager.h

Issue 2860593003: Refactoring DownloadManager::DownloadURL to add proper annotation. (Closed)
Patch Set: Annotation moved to DownloadManager::DownloadUrl. Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/download_manager.h
diff --git a/content/public/browser/download_manager.h b/content/public/browser/download_manager.h
index f6080fe5df2fa375ec65a05787eac3c6a881163d..038195b894e1f7d762348b7f41c6090b72f15fb6 100644
--- a/content/public/browser/download_manager.h
+++ b/content/public/browser/download_manager.h
@@ -40,6 +40,7 @@
#include "content/public/browser/download_item.h"
#include "content/public/browser/download_url_parameters.h"
#include "net/base/net_errors.h"
+#include "net/traffic_annotation/network_traffic_annotation.h"
class GURL;
@@ -121,7 +122,8 @@ class CONTENT_EXPORT DownloadManager : public base::SupportsUserData::Data {
// See DownloadUrlParameters for details about controlling the download.
virtual void DownloadUrl(
- std::unique_ptr<DownloadUrlParameters> parameters) = 0;
+ std::unique_ptr<DownloadUrlParameters> parameters,
+ const net::NetworkTrafficAnnotationTag& traffic_annotation) = 0;
David Trainor- moved to gerrit 2017/05/30 16:35:57 Should the be part of DownloadUrlParameters? We c
Ramin Halavati 2017/05/31 05:16:01 We will gradually remove all NO_TRAFFIC_ANNOTATION
// Allow objects to observe the download creation process.
virtual void AddObserver(Observer* observer) = 0;

Powered by Google App Engine
This is Rietveld 408576698