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 4fdbb4035112e473c82bbf9054874f87b703c226..eb3a146688c3bc1085cfee5995e1d6951ac84485 100644 |
--- a/content/browser/background_fetch/background_fetch_context.h |
+++ b/content/browser/background_fetch/background_fetch_context.h |
@@ -7,11 +7,13 @@ |
#include "base/macros.h" |
#include "base/memory/ref_counted.h" |
+#include "content/browser/background_fetch/background_fetch_batch_manager.h" |
#include "content/browser/background_fetch/background_fetch_data_manager.h" |
#include "content/common/content_export.h" |
namespace content { |
+class BatchRequest; |
class BrowserContext; |
class FetchRequest; |
class ServiceWorkerContextWrapper; |
@@ -27,6 +29,7 @@ class CONTENT_EXPORT BackgroundFetchContext |
// that it can respond to service worker events such as unregister. |
BackgroundFetchContext( |
BrowserContext* browser_context, |
+ StoragePartition* storage_partition, |
const scoped_refptr<ServiceWorkerContextWrapper>& context); |
// Init and Shutdown are for use on the UI thread when the StoragePartition is |
@@ -41,12 +44,15 @@ class CONTENT_EXPORT BackgroundFetchContext |
} |
private: |
- void CreateRequest(const FetchRequest& fetch_request); |
+ void CreateRequest(const BatchRequest& batch_request, |
+ const std::vector<FetchRequest>& fetch_requests); |
friend class base::RefCountedThreadSafe<BackgroundFetchContext>; |
~BackgroundFetchContext(); |
+ BrowserContext* browser_context_; |
scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; |
+ BackgroundFetchBatchManager background_fetch_batch_manager_; |
BackgroundFetchDataManager background_fetch_data_manager_; |
DISALLOW_COPY_AND_ASSIGN(BackgroundFetchContext); |