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

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

Issue 1024903003: [Presentation API] Plumbing of |onstatechange| from the Mojo service to the public/platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call the Mojo method again from the callback Created 5 years, 9 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
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 "content/renderer/presentation/presentation_session_dispatcher.h"
9 #include "third_party/WebKit/public/platform/WebString.h" 8 #include "third_party/WebKit/public/platform/WebString.h"
10 9
11 namespace content { 10 namespace content {
12 11
13 PresentationSessionClient::PresentationSessionClient( 12 PresentationSessionClient::PresentationSessionClient(
14 PresentationSessionDispatcher* dispatcher) 13 presentation::PresentationSessionInfoPtr session_info)
15 : url_(blink::WebString::fromUTF8(dispatcher->GetUrl())), 14 : url_(blink::WebString::fromUTF8(session_info->url)),
16 id_(blink::WebString::fromUTF8(dispatcher->GetId())) { 15 id_(blink::WebString::fromUTF8(session_info->id)) {
17 } 16 }
18 17
19 PresentationSessionClient::~PresentationSessionClient() { 18 PresentationSessionClient::~PresentationSessionClient() {
20 } 19 }
21 20
22 blink::WebString PresentationSessionClient::getUrl() { 21 blink::WebString PresentationSessionClient::getUrl() {
23 return url_; 22 return url_;
24 } 23 }
25 24
26 blink::WebString PresentationSessionClient::getId() { 25 blink::WebString PresentationSessionClient::getId() {
27 return id_; 26 return id_;
28 } 27 }
29 28
30 } // namespace content 29 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698