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

Unified Diff: public/platform/WebGeofencingProvider.h

Issue 1234603003: CallbackPromiseAdapter types should be more compatible with WebCallbacks (1/3). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: retry! Created 5 years, 4 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 | « public/platform/WebCallbacks.h ('k') | public/platform/WebServiceWorkerCache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebGeofencingProvider.h
diff --git a/public/platform/WebGeofencingProvider.h b/public/platform/WebGeofencingProvider.h
index 79ed9e12556b4c0381e73a6a889c079056001193..2b213df96db0de3a1813f48d7b7008c39802c297 100644
--- a/public/platform/WebGeofencingProvider.h
+++ b/public/platform/WebGeofencingProvider.h
@@ -6,6 +6,7 @@
#define WebGeofencingProvider_h
#include "public/platform/WebCallbacks.h"
+#include "public/platform/WebPassOwnPtr.h"
#include "public/platform/WebVector.h"
namespace blink {
@@ -16,8 +17,8 @@ struct WebGeofencingRegistration;
class WebServiceWorkerRegistration;
class WebString;
-typedef WebCallbacks<void, WebGeofencingError*> WebGeofencingCallbacks;
-typedef WebCallbacks<WebVector<WebGeofencingRegistration>*, WebGeofencingError*> WebGeofencingRegionsCallbacks;
+using WebGeofencingCallbacks = WebCallbacks<void, WebPassOwnPtr<WebGeofencingError>>;
+using WebGeofencingRegionsCallbacks = WebCallbacks<WebPassOwnPtr<WebVector<WebGeofencingRegistration>>, WebPassOwnPtr<WebGeofencingError>>;
class WebGeofencingProvider {
public:
« no previous file with comments | « public/platform/WebCallbacks.h ('k') | public/platform/WebServiceWorkerCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698