Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: content/renderer/presentation/presentation_session_client.cc

Issue 1084293004: [PresentationAPI] Added on-session-message handler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/presentation/presentation_session_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/presentation/presentation_session_client.h" 5 #include "content/renderer/presentation/presentation_session_client.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "third_party/WebKit/public/platform/WebString.h" 8 #include "third_party/WebKit/public/platform/WebString.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 PresentationSessionClient::PresentationSessionClient( 12 PresentationSessionClient::PresentationSessionClient(
13 presentation::PresentationSessionInfoPtr session_info) 13 presentation::PresentationSessionInfoPtr session_info)
14 : url_(blink::WebString::fromUTF8(session_info->url)), 14 : url_(blink::WebString::fromUTF8(session_info->url)),
15 id_(blink::WebString::fromUTF8(session_info->id)) { 15 id_(blink::WebString::fromUTF8(session_info->id)) {
16 } 16 }
17 17
18 PresentationSessionClient::PresentationSessionClient(const mojo::String& url,
19 const mojo::String& id)
20 : url_(blink::WebString::fromUTF8(url)),
21 id_(blink::WebString::fromUTF8(id)) {
22 }
23
18 PresentationSessionClient::~PresentationSessionClient() { 24 PresentationSessionClient::~PresentationSessionClient() {
19 } 25 }
20 26
21 blink::WebString PresentationSessionClient::getUrl() { 27 blink::WebString PresentationSessionClient::getUrl() {
22 return url_; 28 return url_;
23 } 29 }
24 30
25 blink::WebString PresentationSessionClient::getId() { 31 blink::WebString PresentationSessionClient::getId() {
26 return id_; 32 return id_;
27 } 33 }
28 34
29 } // namespace content 35 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/presentation/presentation_session_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698