Enable clang warning for ignored attributes.
[chromium-blink-merge.git] / content / public / browser / presentation_session.h
bloba2e44573f8eaea66639057c51794d2cebac2cf01
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.
5 #ifndef CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_H_
6 #define CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_H_
8 #include <string>
10 #include "content/common/content_export.h"
12 namespace content {
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();
21 const std::string presentation_url;
22 const std::string presentation_id;
25 // Possible reasons why an attempt to create a presentation session failed.
26 enum PresentationErrorType {
27 PRESENTATION_ERROR_NO_AVAILABLE_SCREENS,
28 PRESENTATION_ERROR_SESSION_REQUEST_CANCELLED,
29 PRESENTATION_ERROR_NO_PRESENTATION_FOUND,
30 PRESENTATION_ERROR_UNKNOWN,
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();
39 const PresentationErrorType error_type;
40 const std::string message;
43 } // namespace content
45 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_H_