| OLD | NEW |
| 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 #ifndef CONTENT_PUBLIC_COMMON_PRESENTATION_SESSION_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_PRESENTATION_SESSION_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_PRESENTATION_SESSION_H_ | 6 #define CONTENT_PUBLIC_COMMON_PRESENTATION_SESSION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 const GURL presentation_url; | 38 const GURL presentation_url; |
| 39 const std::string presentation_id; | 39 const std::string presentation_id; |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 // Possible reasons why an attempt to create a presentation session failed. | 42 // Possible reasons why an attempt to create a presentation session failed. |
| 43 enum PresentationErrorType { | 43 enum PresentationErrorType { |
| 44 PRESENTATION_ERROR_NO_AVAILABLE_SCREENS, | 44 PRESENTATION_ERROR_NO_AVAILABLE_SCREENS, |
| 45 PRESENTATION_ERROR_SESSION_REQUEST_CANCELLED, | 45 PRESENTATION_ERROR_SESSION_REQUEST_CANCELLED, |
| 46 PRESENTATION_ERROR_NO_PRESENTATION_FOUND, | 46 PRESENTATION_ERROR_NO_PRESENTATION_FOUND, |
| 47 PRESENTATION_ERROR_PREVIOUS_START_IN_PROGRESS, |
| 47 PRESENTATION_ERROR_UNKNOWN, | 48 PRESENTATION_ERROR_UNKNOWN, |
| 48 }; | 49 }; |
| 49 | 50 |
| 50 // Struct returned when an attempt to create a presentation session failed. | 51 // Struct returned when an attempt to create a presentation session failed. |
| 51 struct CONTENT_EXPORT PresentationError { | 52 struct CONTENT_EXPORT PresentationError { |
| 52 PresentationError(PresentationErrorType error_type, | 53 PresentationError(PresentationErrorType error_type, |
| 53 const std::string& message); | 54 const std::string& message); |
| 54 ~PresentationError(); | 55 ~PresentationError(); |
| 55 | 56 |
| 56 const PresentationErrorType error_type; | 57 const PresentationErrorType error_type; |
| 57 const std::string message; | 58 const std::string message; |
| 58 }; | 59 }; |
| 59 | 60 |
| 60 } // namespace content | 61 } // namespace content |
| 61 | 62 |
| 62 #endif // CONTENT_PUBLIC_COMMON_PRESENTATION_SESSION_H_ | 63 #endif // CONTENT_PUBLIC_COMMON_PRESENTATION_SESSION_H_ |
| OLD | NEW |