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

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

Issue 2340433003: [Presentation API] 1-UA: notify receiver page when receiver connection becomes available (blink sid… (Closed)
Patch Set: resolve code review comments from mlamouri Created 4 years, 3 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/WebPresentationReceiver.h
diff --git a/third_party/WebKit/public/platform/modules/presentation/WebPresentationReceiver.h b/third_party/WebKit/public/platform/modules/presentation/WebPresentationReceiver.h
new file mode 100644
index 0000000000000000000000000000000000000000..bfdf8dbd053965d7d8d235eb0b68ad9b37ec117a
--- /dev/null
+++ b/third_party/WebKit/public/platform/modules/presentation/WebPresentationReceiver.h
@@ -0,0 +1,25 @@
+// Copyright 2016 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 WebPresentationReceiver_h
+#define WebPresentationReceiver_h
+
+#include "public/platform/WebCommon.h"
+
+namespace blink {
+
+class WebPresentationConnectionClient;
+
+// The delegate Blink provides to WebPresentationReceiverClient in order to get updates.
+class BLINK_PLATFORM_EXPORT WebPresentationReceiver {
+public:
+ virtual ~WebPresentationReceiver() = default;
+
+ // Called when receiver page gets an incoming connection
mark a. foltz 2016/09/15 16:53:18 Nit: terminate with period.
zhaobin 2016/09/15 18:56:03 Done.
+ virtual void onReceiverConnectionAvailable(WebPresentationConnectionClient*) = 0;
+};
+
+} // namespace blink
+
+#endif // WebPresentationReceiver_h

Powered by Google App Engine
This is Rietveld 408576698