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

Side by Side Diff: content/public/browser/presentation_session.cc

Issue 2379703002: [Presentation API] (alternative) 1-UA: send message between controller and receiver page (Closed)
Patch Set: merge with master 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 unified diff | Download patch
« no previous file with comments | « content/public/browser/presentation_session.h ('k') | content/renderer/BUILD.gn » ('j') | 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/public/browser/presentation_session.h" 5 #include "content/public/browser/presentation_session.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 PresentationSessionInfo::PresentationSessionInfo( 9 PresentationSessionInfo::PresentationSessionInfo(
10 const GURL& presentation_url, 10 const GURL& presentation_url,
11 const std::string& presentation_id) 11 const std::string& presentation_id)
12 : presentation_url(presentation_url), presentation_id(presentation_id) {} 12 : PresentationSessionInfo(presentation_url, presentation_id, false) {}
13
14 PresentationSessionInfo::PresentationSessionInfo(
15 const GURL& presentation_url,
16 const std::string& presentation_id,
17 bool is_offscreen)
18 : presentation_url(presentation_url),
19 presentation_id(presentation_id),
20 is_offscreen(is_offscreen) {}
13 21
14 PresentationSessionInfo::~PresentationSessionInfo() { 22 PresentationSessionInfo::~PresentationSessionInfo() {
15 } 23 }
16 24
17 PresentationError::PresentationError( 25 PresentationError::PresentationError(
18 PresentationErrorType error_type, 26 PresentationErrorType error_type,
19 const std::string& message) 27 const std::string& message)
20 : error_type(error_type), 28 : error_type(error_type),
21 message(message) { 29 message(message) {
22 } 30 }
23 31
24 PresentationError::~PresentationError() { 32 PresentationError::~PresentationError() {
25 } 33 }
26 34
27 } // namespace content 35 } // namespace content
28 36
OLDNEW
« no previous file with comments | « content/public/browser/presentation_session.h ('k') | content/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698