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

Unified Diff: third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.h

Issue 2775923002: Add origins to the Background Fetch Mojo calls. (Closed)
Patch Set: 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: third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.h
diff --git a/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.h b/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.h
index 4d67561ce8335f33389dabfa65359a9f0853cff5..ebc02022a0aac872d7576d5d63618e4c0fd7599b 100644
--- a/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.h
+++ b/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.h
@@ -75,6 +75,10 @@ class BackgroundFetchBridge final
private:
explicit BackgroundFetchBridge(ServiceWorkerRegistration&);
+ // Returns the security origin for the Service Worker registration this bridge
+ // is servicing, which is to be included in the Mojo calls.
+ SecurityOrigin* getSecurityOrigin();
+
// Returns an initialized BackgroundFetchServicePtr. A connection will be
// established after the first call to this method.
mojom::blink::BackgroundFetchServicePtr& getService();

Powered by Google App Engine
This is Rietveld 408576698