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

Unified Diff: third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerProvider.h

Issue 2564363002: ServiceWorker: Replace RegistrationCallback and GetRegistrationsCallback with CallbackPromiseAdapter (Closed)
Patch Set: base::MakeUnique Created 4 years 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 | « third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerProvider.h
diff --git a/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerProvider.h b/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerProvider.h
index 513cb9dc6e5f3d6a254f1c45ba0ce95debcd8e1e..33acad2b3bf1dbc74fd78c36b7b93c9addd30404 100644
--- a/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerProvider.h
+++ b/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerProvider.h
@@ -59,10 +59,11 @@ class WebServiceWorkerProvider {
WebCallbacks<std::unique_ptr<WebServiceWorkerRegistration::Handle>,
const WebServiceWorkerError&>;
- // Each element's ownership is transferred.
- using WebServiceWorkerGetRegistrationsCallbacks = WebCallbacks<
- std::unique_ptr<WebVector<WebServiceWorkerRegistration::Handle*>>,
- const WebServiceWorkerError&>;
+ using WebServiceWorkerRegistrationHandles =
+ WebVector<std::unique_ptr<WebServiceWorkerRegistration::Handle>>;
+ using WebServiceWorkerGetRegistrationsCallbacks =
+ WebCallbacks<std::unique_ptr<WebServiceWorkerRegistrationHandles>,
+ const WebServiceWorkerError&>;
using WebServiceWorkerGetRegistrationForReadyCallbacks =
WebCallbacks<std::unique_ptr<WebServiceWorkerRegistration::Handle>, void>;
« no previous file with comments | « third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698