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

Unified Diff: public/platform/modules/presentation/WebPresentationClient.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
Index: public/platform/modules/presentation/WebPresentationClient.h
diff --git a/public/platform/modules/presentation/WebPresentationClient.h b/public/platform/modules/presentation/WebPresentationClient.h
index 9ea599016138dcc6d869d47cd2688039a6e97cab..e8f8a48b5125c0caa8e6821ea2a342f6a8fe0b34 100644
--- a/public/platform/modules/presentation/WebPresentationClient.h
+++ b/public/platform/modules/presentation/WebPresentationClient.h
@@ -7,6 +7,7 @@
#include "public/platform/WebCallbacks.h"
#include "public/platform/WebCommon.h"
+#include "public/platform/WebPassOwnPtr.h"
namespace blink {
@@ -19,10 +20,10 @@ struct WebPresentationError;
// If session was created, callback's onSuccess() is invoked with the information about the
// presentation session created by the embedder. Otherwise, onError() is invoked with the error code
// and message.
-using WebPresentationSessionClientCallbacks = WebCallbacks<WebPresentationSessionClient*, WebPresentationError*>;
+using WebPresentationSessionClientCallbacks = WebCallbacks<WebPassOwnPtr<WebPresentationSessionClient>, WebPassOwnPtr<WebPresentationError>>;
// Callback for .getAvailability().
-using WebPresentationAvailabilityCallbacks = WebCallbacks<bool*, WebPresentationError*>;
+using WebPresentationAvailabilityCallbacks = WebCallbacks<WebPassOwnPtr<bool>, WebPassOwnPtr<WebPresentationError>>;
// The implementation the embedder has to provide for the Presentation API to work.
class WebPresentationClient {

Powered by Google App Engine
This is Rietveld 408576698