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

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

Issue 2708943002: Create the BackgroundFetchBatchManager and initiate a download. (Closed)
Patch Set: fixed nits Created 3 years, 10 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 | « content/browser/BUILD.gn ('k') | 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 4fdbb4035112e473c82bbf9054874f87b703c226..8626bec6963bc7e60e11a171f9d89b8390ad97df 100644
--- a/content/browser/background_fetch/background_fetch_context.h
+++ b/content/browser/background_fetch/background_fetch_context.h
@@ -8,12 +8,14 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "content/browser/background_fetch/background_fetch_data_manager.h"
+#include "content/browser/background_fetch/background_fetch_job_controller.h"
#include "content/common/content_export.h"
namespace content {
+class BackgroundFetchJobInfo;
+class BackgroundFetchRequestInfo;
class BrowserContext;
-class FetchRequest;
class ServiceWorkerContextWrapper;
// The BackgroundFetchContext is the central moderator of ongoing background
@@ -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,14 @@ class CONTENT_EXPORT BackgroundFetchContext
}
private:
- void CreateRequest(const FetchRequest& fetch_request);
+ void CreateRequest(const BackgroundFetchJobInfo& job_info,
+ std::vector<BackgroundFetchRequestInfo>& request_infos);
friend class base::RefCountedThreadSafe<BackgroundFetchContext>;
~BackgroundFetchContext();
scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
+ BackgroundFetchJobController background_fetch_job_controller_;
BackgroundFetchDataManager background_fetch_data_manager_;
DISALLOW_COPY_AND_ASSIGN(BackgroundFetchContext);
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/background_fetch/background_fetch_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698