| 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 PresentationConnectionState { | 14 enum PresentationConnectionState { |
| 15 PRESENTATION_CONNECTION_STATE_CONNECTING, |
| 15 PRESENTATION_CONNECTION_STATE_CONNECTED, | 16 PRESENTATION_CONNECTION_STATE_CONNECTED, |
| 16 PRESENTATION_CONNECTION_STATE_CLOSED, | 17 PRESENTATION_CONNECTION_STATE_CLOSED, |
| 17 PRESENTATION_CONNECTION_STATE_TERMINATED | 18 PRESENTATION_CONNECTION_STATE_TERMINATED |
| 18 }; | 19 }; |
| 19 | 20 |
| 20 // TODO(imcheng): Rename to PresentationConnectionInfo. | 21 // TODO(imcheng): Rename to PresentationConnectionInfo. |
| 21 // Represents a presentation session that has been established via either | 22 // Represents a presentation session that has been established via either |
| 22 // browser actions or Presentation API. | 23 // browser actions or Presentation API. |
| 23 struct CONTENT_EXPORT PresentationSessionInfo { | 24 struct CONTENT_EXPORT PresentationSessionInfo { |
| 24 PresentationSessionInfo(const std::string& presentation_url, | 25 PresentationSessionInfo(const std::string& presentation_url, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 43 const std::string& message); | 44 const std::string& message); |
| 44 ~PresentationError(); | 45 ~PresentationError(); |
| 45 | 46 |
| 46 const PresentationErrorType error_type; | 47 const PresentationErrorType error_type; |
| 47 const std::string message; | 48 const std::string message; |
| 48 }; | 49 }; |
| 49 | 50 |
| 50 } // namespace content | 51 } // namespace content |
| 51 | 52 |
| 52 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_H_ | 53 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_H_ |
| OLD | NEW |