| 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_BROWSER_PRESENTATION_SESSION_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_H_ | 6 #define CONTENT_PUBLIC_BROWSER_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" |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 | 13 |
| 14 enum CONTENT_EXPORT PresentationSessionState { | 14 enum PresentationSessionState { |
| 15 PRESENTATION_SESSION_STATE_CONNECTED, | 15 PRESENTATION_SESSION_STATE_CONNECTED, |
| 16 PRESENTATION_SESSION_STATE_DISCONNECTED | 16 PRESENTATION_SESSION_STATE_DISCONNECTED |
| 17 }; | 17 }; |
| 18 | 18 |
| 19 // Represents a presentation session that has been established via either | 19 // Represents a presentation session that has been established via either |
| 20 // browser actions or Presentation API. | 20 // browser actions or Presentation API. |
| 21 struct CONTENT_EXPORT PresentationSessionInfo { | 21 struct CONTENT_EXPORT PresentationSessionInfo { |
| 22 PresentationSessionInfo(const std::string& presentation_url, | 22 PresentationSessionInfo(const std::string& presentation_url, |
| 23 const std::string& presentation_id); | 23 const std::string& presentation_id); |
| 24 ~PresentationSessionInfo(); | 24 ~PresentationSessionInfo(); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 41 const std::string& message); | 41 const std::string& message); |
| 42 ~PresentationError(); | 42 ~PresentationError(); |
| 43 | 43 |
| 44 const PresentationErrorType error_type; | 44 const PresentationErrorType error_type; |
| 45 const std::string message; | 45 const std::string message; |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace content | 48 } // namespace content |
| 49 | 49 |
| 50 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_H_ | 50 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_H_ |
| OLD | NEW |