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

Unified Diff: content/renderer/presentation/presentation_session_client.cc

Issue 935083002: [PresentationAPI] Implementing start/joinSession from WebPresentationClient to PresentationService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the last round of comments Created 5 years, 10 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: content/renderer/presentation/presentation_session_client.cc
diff --git a/content/renderer/presentation/presentation_session_client.cc b/content/renderer/presentation/presentation_session_client.cc
new file mode 100644
index 0000000000000000000000000000000000000000..e1f468ffbc27ccb46730e749dcb4841aa8d3b402
--- /dev/null
+++ b/content/renderer/presentation/presentation_session_client.cc
@@ -0,0 +1,30 @@
+// Copyright 2015 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.
+
+#include "content/renderer/presentation/presentation_session_client.h"
+
+#include "base/logging.h"
+#include "content/renderer/presentation/presentation_session_dispatcher.h"
+#include "third_party/WebKit/public/platform/WebString.h"
+
+namespace content {
+
+PresentationSessionClient::PresentationSessionClient(
+ PresentationSessionDispatcher* dispatcher)
+ : url_(blink::WebString::fromUTF8(dispatcher->GetUrl())),
+ id_(blink::WebString::fromUTF8(dispatcher->GetId())) {
+}
+
+PresentationSessionClient::~PresentationSessionClient() {
+}
+
+blink::WebString PresentationSessionClient::getUrl() {
+ return url_;
+}
+
+blink::WebString PresentationSessionClient::getId() {
+ return id_;
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698