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

Unified Diff: content/browser/presentation/presentation_service_impl.cc

Issue 2471883002: [Presentation API] (1st) (1-UA) Add is_offscreen_presentation attribute to MediaRouter (Closed)
Patch Set: Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/presentation/presentation_service_impl.cc
diff --git a/content/browser/presentation/presentation_service_impl.cc b/content/browser/presentation/presentation_service_impl.cc
index 46ec67cf0158791d666a023c92abfb3e71e47546..45d933cd0d9868565d98daadc8069e7450c19d33 100644
--- a/content/browser/presentation/presentation_service_impl.cc
+++ b/content/browser/presentation/presentation_service_impl.cc
@@ -297,6 +297,8 @@ void PresentationServiceImpl::ListenForConnectionStateChange(
void PresentationServiceImpl::OnStartSessionSucceeded(
int request_session_id,
const PresentationSessionInfo& session_info) {
+ DVLOG(2) << "PresentationServiceImpl::OnStartSessionSucceeded"
mark a. foltz 2016/11/03 18:32:05 Please remove log statements here and below. It's
zhaobin 2016/11/03 23:00:46 Done.
+ << " [is_offscreen]: " << session_info.is_offscreen;
if (request_session_id != start_session_request_id_)
return;
@@ -325,6 +327,8 @@ void PresentationServiceImpl::OnStartSessionError(
void PresentationServiceImpl::OnJoinSessionSucceeded(
int request_session_id,
const PresentationSessionInfo& session_info) {
+ DVLOG(2) << "PresentationServiceImpl::OnJoinSessionSucceeded"
+ << " [is_offscreen]: " << session_info.is_offscreen;
if (RunAndEraseJoinSessionMojoCallback(
request_session_id,
blink::mojom::PresentationSessionInfo::From(session_info),
@@ -553,6 +557,8 @@ void PresentationServiceImpl::OnDelegateDestroyed() {
void PresentationServiceImpl::OnDefaultPresentationStarted(
const PresentationSessionInfo& connection) {
+ DVLOG(2) << "PresentationServiceImpl::OnDefaultPresentationStarted"
+ << " [is_offscreen]: " << connection.is_offscreen;
DCHECK(client_.get());
client_->OnDefaultSessionStarted(
blink::mojom::PresentationSessionInfo::From(connection));

Powered by Google App Engine
This is Rietveld 408576698