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

Unified Diff: content/browser/background_fetch/background_fetch_job_controller.h

Issue 2860593003: Refactoring DownloadManager::DownloadURL to add proper annotation. (Closed)
Patch Set: Comment addressed. 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/browser/background_fetch/background_fetch_job_controller.h
diff --git a/content/browser/background_fetch/background_fetch_job_controller.h b/content/browser/background_fetch/background_fetch_job_controller.h
index 4c33c7672ee5e2f4b35e6e58ea771845952f643a..a6e598c90cee34f2c036117072c248ecbd7ceb27 100644
--- a/content/browser/background_fetch/background_fetch_job_controller.h
+++ b/content/browser/background_fetch/background_fetch_job_controller.h
@@ -17,6 +17,7 @@
#include "content/common/background_fetch/background_fetch_types.h"
#include "content/common/content_export.h"
#include "content/public/browser/browser_thread.h"
+#include "net/traffic_annotation/network_traffic_annotation.h"
namespace net {
class URLRequestContextGetter;
@@ -49,7 +50,8 @@ class CONTENT_EXPORT BackgroundFetchJobController {
// Starts fetching the |initial_fetches|. The controller will continue to
// fetch new content until all requests have been handled.
void Start(
- std::vector<scoped_refptr<BackgroundFetchRequestInfo>> initial_requests);
+ std::vector<scoped_refptr<BackgroundFetchRequestInfo>> initial_requests,
+ const net::NetworkTrafficAnnotationTag& traffic_annotation);
// Updates the representation of this Background Fetch in the user interface
// to match the given |title|.
@@ -73,7 +75,8 @@ class CONTENT_EXPORT BackgroundFetchJobController {
class Core;
// Requests the download manager to start fetching |request|.
- void StartRequest(scoped_refptr<BackgroundFetchRequestInfo> request);
+ void StartRequest(scoped_refptr<BackgroundFetchRequestInfo> request,
+ const net::NetworkTrafficAnnotationTag& traffic_annotation);
// Called when the given |request| has started fetching, after having been
// assigned the |download_guid| by the download system.

Powered by Google App Engine
This is Rietveld 408576698