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..c3540d613ae69c9477b05d7cc37b465e123919ff |
--- /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) |
+ : dispatcher_(dispatcher) { |
+ DCHECK(dispatcher); |
+} |
+ |
+PresentationSessionClient::~PresentationSessionClient() { |
+} |
+ |
+blink::WebString PresentationSessionClient::getUrl() { |
+ return blink::WebString::fromUTF8(dispatcher_->getUrl()); |
+} |
+ |
+blink::WebString PresentationSessionClient::getId() { |
+ return blink::WebString::fromUTF8(dispatcher_->getId()); |
+} |
+ |
+} // namespace content |