[Ozone-Gbm] Explicitly crash if trying software rendering on GBM
[chromium-blink-merge.git] / content / renderer / presentation / presentation_session_client.cc
blobe1f468ffbc27ccb46730e749dcb4841aa8d3b402
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 "content/renderer/presentation/presentation_session_dispatcher.h"
9 #include "third_party/WebKit/public/platform/WebString.h"
11 namespace content {
13 PresentationSessionClient::PresentationSessionClient(
14 PresentationSessionDispatcher* dispatcher)
15 : url_(blink::WebString::fromUTF8(dispatcher->GetUrl())),
16 id_(blink::WebString::fromUTF8(dispatcher->GetId())) {
19 PresentationSessionClient::~PresentationSessionClient() {
22 blink::WebString PresentationSessionClient::getUrl() {
23 return url_;
26 blink::WebString PresentationSessionClient::getId() {
27 return id_;
30 } // namespace content