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

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

Issue 979413002: [Presentation API] Additional plumbing for PresentationServiceImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@REAL-NEW-MASTER
Patch Set: rm presentation_session.mojom 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
(Empty)
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.
4
5 #ifndef CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_H_
6 #define CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_H_
7
8 #include <string>
9
10 #include "content/common/content_export.h"
11
12 namespace content {
13
14 // Represents a presentation session that has been established via either
15 // browser actions or Presentation API.
16 struct CONTENT_EXPORT PresentationSessionInfo {
17 PresentationSessionInfo(const std::string& presentation_url,
18 const std::string& presentation_id);
19 ~PresentationSessionInfo();
20
21 const std::string presentation_url;
22 const std::string presentation_id;
23 };
24
25 // Possible reasons why an attempt to create a presentation session failed.
26 enum CONTENT_EXPORT PresentationErrorType {
27 PRESENTATION_ERROR_NO_AVAILABLE_SCREENS,
28 PRESENTATION_ERROR_SESSION_REQUEST_CANCELLED,
29 PRESENTATION_ERROR_NO_PRESENTATION_FOUND,
30 PRESENTATION_ERROR_UNKNOWN,
31 };
32
33 // Struct returned when an attempt to create a presentation session failed.
34 struct CONTENT_EXPORT PresentationError {
35 PresentationError(PresentationErrorType error_type,
36 const std::string& message);
37 ~PresentationError();
38
39 const PresentationErrorType error_type;
40 const std::string message;
41 };
42
43 } // namespace content
44
45 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_H_
OLDNEW
« no previous file with comments | « content/public/browser/presentation_service_delegate.h ('k') | content/public/browser/presentation_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698