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

Unified Diff: third_party/WebKit/public/platform/modules/presentation/WebPresentationConnectionCallbacks.h

Issue 2471263003: [Presentation API] (4th)(1-UA blink side) Add WebPresentationConnection and WebPresentationConnecti… (Closed)
Patch Set: resolve code review comments from mlamouri Created 3 years, 11 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/public/platform/modules/presentation/WebPresentationConnectionCallbacks.h
diff --git a/third_party/WebKit/public/platform/modules/presentation/WebPresentationConnectionCallbacks.h b/third_party/WebKit/public/platform/modules/presentation/WebPresentationConnectionCallbacks.h
new file mode 100644
index 0000000000000000000000000000000000000000..d24220f0468be046e5c9c7271a55e162ddaebf25
--- /dev/null
+++ b/third_party/WebKit/public/platform/modules/presentation/WebPresentationConnectionCallbacks.h
@@ -0,0 +1,31 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebPresentationConnectionCallbacks_h
+#define WebPresentationConnectionCallbacks_h
+
+#include "public/platform/WebCallbacks.h"
+#include "public/platform/WebCommon.h"
+
+namespace blink {
+
+class WebPresentationConnection;
+struct WebPresentationError;
+struct WebPresentationSessionInfo;
+
+// 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.
+class WebPresentationConnectionCallbacks
+ : public WebCallbacks<const WebPresentationSessionInfo&,
+ const WebPresentationError&> {
+ public:
+ // Returns newly created PresentationConnection object if
+ // WebCallbacks::onSuccess() has been called.
+ virtual WebPresentationConnection* getConnection() = 0;
+};
+
+} // namespace blink
+
+#endif // WebPresentationConnectionCallbacks_h

Powered by Google App Engine
This is Rietveld 408576698