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

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

Issue 2806713002: Some minor fixes for Background Fetch (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | content/browser/background_fetch/background_fetch_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6d5a4d1b6502d13875d920de4d14e935d053b169..66df7e17334923b8695ddcf291707db54fbed061 100644
--- a/content/browser/background_fetch/background_fetch_context.h
+++ b/content/browser/background_fetch/background_fetch_context.h
@@ -51,6 +51,11 @@ class CONTENT_EXPORT BackgroundFetchContext
StoragePartitionImpl* storage_partition,
scoped_refptr<ServiceWorkerContextWrapper> context);
+ // Finishes initializing the Background Fetch context on the IO thread by
+ // setting the |request_context_getter|.
+ void InitializeOnIOThread(
+ scoped_refptr<net::URLRequestContextGetter> request_context_getter);
+
// Shutdown must be called before deleting this. Call on the UI thread.
void Shutdown();
@@ -120,7 +125,7 @@ class CONTENT_EXPORT BackgroundFetchContext
// |this| is owned, indirectly, by the BrowserContext.
BrowserContext* browser_context_;
- scoped_refptr<net::URLRequestContextGetter> request_context_;
+ scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
std::unique_ptr<BackgroundFetchDataManager> data_manager_;
std::unique_ptr<BackgroundFetchEventDispatcher> event_dispatcher_;
« no previous file with comments | « no previous file | content/browser/background_fetch/background_fetch_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698