Index: content/renderer/presentation/presentation_session_dispatcher.cc |
diff --git a/content/renderer/presentation/presentation_session_dispatcher.cc b/content/renderer/presentation/presentation_session_dispatcher.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d99b264c1a579845f6070acebba9d25962479cbd |
--- /dev/null |
+++ b/content/renderer/presentation/presentation_session_dispatcher.cc |
@@ -0,0 +1,27 @@ |
+// 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_dispatcher.h" |
+ |
+#include "base/logging.h" |
+ |
+namespace content { |
+ |
+PresentationSessionDispatcher::PresentationSessionDispatcher( |
+ presentation::PresentationSessionInfoPtr session_info) |
+ : session_info_(session_info.Pass()) { |
+} |
+ |
+PresentationSessionDispatcher::~PresentationSessionDispatcher() { |
+} |
+ |
+blink::WebString PresentationSessionDispatcher::getUrl() { |
+ return blink::WebString::fromUTF8(session_info_->url); |
+} |
+ |
+blink::WebString PresentationSessionDispatcher::getId() { |
+ return blink::WebString::fromLatin1(session_info_->id); |
mlamouri (slow - plz ping)
2015/02/23 14:07:39
Shouldn't that be ::fromUTF8?
whywhat
2015/02/25 14:12:42
I assumed the restrictions on the generated id are
|
+} |
+ |
+} // namespace content |