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 8626bec6963bc7e60e11a171f9d89b8390ad97df..49f377fb33102c1a6d564596206dc9e028e7be65 100644 |
--- a/content/browser/background_fetch/background_fetch_context.h |
+++ b/content/browser/background_fetch/background_fetch_context.h |
@@ -5,6 +5,8 @@ |
#ifndef CONTENT_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_CONTEXT_H_ |
#define CONTENT_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_CONTEXT_H_ |
+#include <unordered_map> |
+ |
#include "base/macros.h" |
#include "base/memory/ref_counted.h" |
#include "content/browser/background_fetch/background_fetch_data_manager.h" |
@@ -47,13 +49,21 @@ class CONTENT_EXPORT BackgroundFetchContext |
void CreateRequest(const BackgroundFetchJobInfo& job_info, |
std::vector<BackgroundFetchRequestInfo>& request_infos); |
+ void ShutdownOnIO(); |
+ |
friend class base::RefCountedThreadSafe<BackgroundFetchContext>; |
~BackgroundFetchContext(); |
+ // The Context is owned by the BrowserContext via the StoragePartition. |
Peter Beverloo
2017/03/08 14:27:04
Maybe s/The Context/|this|/ to remove ambiguity be
harkness
2017/03/09 13:33:25
Good point! Done.
|
+ BrowserContext* browser_context_; |
+ StoragePartition* storage_partition_; |
+ |
scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; |
- BackgroundFetchJobController background_fetch_job_controller_; |
BackgroundFetchDataManager background_fetch_data_manager_; |
+ std::unordered_map<std::string, std::unique_ptr<BackgroundFetchJobController>> |
+ job_map_; |
+ |
DISALLOW_COPY_AND_ASSIGN(BackgroundFetchContext); |
}; |