blob: be8c754d8946ad6f9aea479c4104aed094369fe6 [file] [log] [blame]
// 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 "third_party/WebKit/public/platform/WebString.h"
namespace content {
PresentationSessionClient::PresentationSessionClient(
presentation::PresentationSessionInfoPtr session_info)
: url_(blink::WebString::fromUTF8(session_info->url)),
id_(blink::WebString::fromUTF8(session_info->id)) {
}
PresentationSessionClient::PresentationSessionClient(const mojo::String& url,
const mojo::String& id)
: url_(blink::WebString::fromUTF8(url)),
id_(blink::WebString::fromUTF8(id)) {
}
PresentationSessionClient::~PresentationSessionClient() {
}
blink::WebString PresentationSessionClient::getUrl() {
return url_;
}
blink::WebString PresentationSessionClient::getId() {
return id_;
}
} // namespace content