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

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

Issue 2782553007: Implement the new polling system in the BackgroundFetchJobController (Closed)
Patch Set: Implement the new polling system in the BFJobController 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 75df6ecd687f54c6139de914defb225aa98048b5..345193713e931ab011c31c85f5c068f0de1243e0 100644
--- a/content/browser/background_fetch/background_fetch_context.h
+++ b/content/browser/background_fetch/background_fetch_context.h
@@ -25,6 +25,7 @@ class BackgroundFetchDataManager;
class BackgroundFetchJobController;
struct BackgroundFetchOptions;
class BackgroundFetchRegistrationId;
+class BackgroundFetchRequestInfo;
class BrowserContext;
class ServiceWorkerContextWrapper;
struct ServiceWorkerFetchRequest;
@@ -81,15 +82,18 @@ class CONTENT_EXPORT BackgroundFetchContext
// Creates a new Job Controller for the given |registration_id| and |options|,
// which will start fetching the files that are part of the registration.
- void CreateController(const BackgroundFetchRegistrationId& registration_id,
- const BackgroundFetchOptions& options);
+ void CreateController(
+ const BackgroundFetchRegistrationId& registration_id,
+ const BackgroundFetchOptions& options,
+ std::vector<BackgroundFetchRequestInfo> initial_requests);
// Called when a new registration has been created by the data manager.
void DidCreateRegistration(
const BackgroundFetchRegistrationId& registration_id,
const BackgroundFetchOptions& options,
const blink::mojom::BackgroundFetchService::FetchCallback& callback,
- blink::mojom::BackgroundFetchError error);
+ blink::mojom::BackgroundFetchError error,
+ std::vector<BackgroundFetchRequestInfo> initial_requests);
// Called when a the given |controller| has finished processing its job.
void DidCompleteJob(BackgroundFetchJobController* controller);

Powered by Google App Engine
This is Rietveld 408576698