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

Unified Diff: Source/modules/presentation/PresentationSession.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 | « Source/modules/presentation/PresentationError.h ('k') | Source/modules/push_messaging/PushError.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/presentation/PresentationSession.h
diff --git a/Source/modules/presentation/PresentationSession.h b/Source/modules/presentation/PresentationSession.h
index b8e8edbdd116d8da62982a0717bac232b07d3511..ab59b51b9d1665133618735963585c2fdc521d24 100644
--- a/Source/modules/presentation/PresentationSession.h
+++ b/Source/modules/presentation/PresentationSession.h
@@ -11,6 +11,7 @@
#include "core/frame/DOMWindowProperty.h"
#include "platform/heap/Handle.h"
#include "public/platform/modules/presentation/WebPresentationSessionClient.h"
+#include "wtf/OwnPtr.h"
#include "wtf/text/WTFString.h"
namespace WTF {
@@ -31,7 +32,7 @@ class PresentationSession final
DEFINE_WRAPPERTYPEINFO();
public:
// For CallbackPromiseAdapter.
- using WebType = WebPresentationSessionClient;
+ using WebType = OwnPtr<WebPresentationSessionClient>;
static PresentationSession* take(ScriptPromiseResolver*, PassOwnPtr<WebPresentationSessionClient>);
static PresentationSession* take(PresentationController*, PassOwnPtr<WebPresentationSessionClient>);
« no previous file with comments | « Source/modules/presentation/PresentationError.h ('k') | Source/modules/push_messaging/PushError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698