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

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

Issue 2781623009: Migrate part of the BackgroundFetchJobController to the UI thread (Closed)
Patch Set: Created 3 years, 9 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_context.h
diff --git a/content/browser/background_fetch/background_fetch_context.h b/content/browser/background_fetch/background_fetch_context.h
index d80c6d88b1309380a7dd6e6f06431ea4836d2283..e7d959cc9399197e9b0fef10dadb875b01e83b96 100644
--- a/content/browser/background_fetch/background_fetch_context.h
+++ b/content/browser/background_fetch/background_fetch_context.h
@@ -15,6 +15,10 @@
#include "content/public/browser/browser_thread.h"
#include "third_party/WebKit/public/platform/modules/background_fetch/background_fetch.mojom.h"
+namespace net {
+class URLRequestContextGetter;
+}
+
namespace url {
class Origin;
}
@@ -99,12 +103,13 @@ class CONTENT_EXPORT BackgroundFetchContext
// Called when a the given |controller| has finished processing its job.
void DidCompleteJob(BackgroundFetchJobController* controller);
- // |this| is owned by the BrowserContext via the StoragePartitionImpl.
+ // |this| is owned, indirectly, by the BrowserContext.
BrowserContext* browser_context_;
- StoragePartitionImpl* storage_partition_;
DownloadManager* download_manager_;
scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
+ scoped_refptr<net::URLRequestContextGetter> request_context_;
+
std::unique_ptr<BackgroundFetchDataManager> background_fetch_data_manager_;
// Map of the Background Fetch fetches that are currently in-progress.

Powered by Google App Engine
This is Rietveld 408576698