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

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

Issue 2978603003: [Background Fetch] Tidy up getting/activating pending requests (Closed)
Patch Set: Split up MarkRequestAsCompleteAndGetNextRequest and nuke pending_completed_file_acknowledgements_ Created 3 years, 5 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 944b5bc3d873f0a9baa6fedd99176c8ce0bbd348..d96e76b82d36243d12b0639bfa481fdfa8e21aac 100644
--- a/content/browser/background_fetch/background_fetch_context.h
+++ b/content/browser/background_fetch/background_fetch_context.h
@@ -31,7 +31,6 @@ class BackgroundFetchEventDispatcher;
class BackgroundFetchJobController;
struct BackgroundFetchOptions;
class BackgroundFetchRegistrationId;
-class BackgroundFetchRequestInfo;
class BlobHandle;
class BrowserContext;
class ServiceWorkerContextWrapper;
@@ -84,18 +83,15 @@ 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,
- std::vector<scoped_refptr<BackgroundFetchRequestInfo>> initial_requests);
+ void CreateController(const BackgroundFetchRegistrationId& registration_id,
+ const BackgroundFetchOptions& options);
// Called when a new registration has been created by the data manager.
void DidCreateRegistration(
const BackgroundFetchRegistrationId& registration_id,
const BackgroundFetchOptions& options,
blink::mojom::BackgroundFetchService::FetchCallback callback,
- blink::mojom::BackgroundFetchError error,
- std::vector<scoped_refptr<BackgroundFetchRequestInfo>> initial_requests);
+ blink::mojom::BackgroundFetchError error);
// Called when the given |controller| has finished processing its job.
void DidCompleteJob(BackgroundFetchJobController* controller);

Powered by Google App Engine
This is Rietveld 408576698