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

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

Issue 2796933003: Store BackgroundFetchRequestInfo in a refcounted pointer (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | 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 ec41d64dbe977d54975777558ff34fc630a1d3f7..8e16a169809078f96b36bc7b1179275cc66014e8 100644
--- a/content/browser/background_fetch/background_fetch_context.h
+++ b/content/browser/background_fetch/background_fetch_context.h
@@ -90,7 +90,7 @@ class CONTENT_EXPORT BackgroundFetchContext
void CreateController(
const BackgroundFetchRegistrationId& registration_id,
const BackgroundFetchOptions& options,
- std::vector<BackgroundFetchRequestInfo> initial_requests);
+ std::vector<scoped_refptr<BackgroundFetchRequestInfo>> initial_requests);
// Called when a new registration has been created by the data manager.
void DidCreateRegistration(
@@ -98,7 +98,7 @@ class CONTENT_EXPORT BackgroundFetchContext
const BackgroundFetchOptions& options,
const blink::mojom::BackgroundFetchService::FetchCallback& callback,
blink::mojom::BackgroundFetchError error,
- std::vector<BackgroundFetchRequestInfo> initial_requests);
+ std::vector<scoped_refptr<BackgroundFetchRequestInfo>> initial_requests);
// Called when the given |controller| has finished processing its job.
void DidCompleteJob(BackgroundFetchJobController* controller);
« no previous file with comments | « no previous file | content/browser/background_fetch/background_fetch_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698