Add ICU message format support
[chromium-blink-merge.git] / content / renderer / presentation / presentation_session_client.cc
blobbe8c754d8946ad6f9aea479c4104aed094369fe6
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/renderer/presentation/presentation_session_client.h"
7 #include "base/logging.h"
8 #include "third_party/WebKit/public/platform/WebString.h"
10 namespace content {
12 PresentationSessionClient::PresentationSessionClient(
13 presentation::PresentationSessionInfoPtr session_info)
14 : url_(blink::WebString::fromUTF8(session_info->url)),
15 id_(blink::WebString::fromUTF8(session_info->id)) {
18 PresentationSessionClient::PresentationSessionClient(const mojo::String& url,
19 const mojo::String& id)
20 : url_(blink::WebString::fromUTF8(url)),
21 id_(blink::WebString::fromUTF8(id)) {
24 PresentationSessionClient::~PresentationSessionClient() {
27 blink::WebString PresentationSessionClient::getUrl() {
28 return url_;
31 blink::WebString PresentationSessionClient::getId() {
32 return id_;
35 } // namespace content