| OLD | NEW |
| (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_ |
| OLD | NEW |