Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(588)

Side by Side Diff: content/public/browser/presentation_session.h

Issue 1221073004: Enable clang warning for ignored attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 // Represents a presentation session that has been established via either 14 // Represents a presentation session that has been established via either
15 // browser actions or Presentation API. 15 // browser actions or Presentation API.
16 struct CONTENT_EXPORT PresentationSessionInfo { 16 struct CONTENT_EXPORT PresentationSessionInfo {
17 PresentationSessionInfo(const std::string& presentation_url, 17 PresentationSessionInfo(const std::string& presentation_url,
18 const std::string& presentation_id); 18 const std::string& presentation_id);
19 ~PresentationSessionInfo(); 19 ~PresentationSessionInfo();
20 20
21 const std::string presentation_url; 21 const std::string presentation_url;
22 const std::string presentation_id; 22 const std::string presentation_id;
23 }; 23 };
24 24
25 // Possible reasons why an attempt to create a presentation session failed. 25 // Possible reasons why an attempt to create a presentation session failed.
26 enum CONTENT_EXPORT PresentationErrorType { 26 enum PresentationErrorType {
27 PRESENTATION_ERROR_NO_AVAILABLE_SCREENS, 27 PRESENTATION_ERROR_NO_AVAILABLE_SCREENS,
28 PRESENTATION_ERROR_SESSION_REQUEST_CANCELLED, 28 PRESENTATION_ERROR_SESSION_REQUEST_CANCELLED,
29 PRESENTATION_ERROR_NO_PRESENTATION_FOUND, 29 PRESENTATION_ERROR_NO_PRESENTATION_FOUND,
30 PRESENTATION_ERROR_UNKNOWN, 30 PRESENTATION_ERROR_UNKNOWN,
31 }; 31 };
32 32
33 // Struct returned when an attempt to create a presentation session failed. 33 // Struct returned when an attempt to create a presentation session failed.
34 struct CONTENT_EXPORT PresentationError { 34 struct CONTENT_EXPORT PresentationError {
35 PresentationError(PresentationErrorType error_type, 35 PresentationError(PresentationErrorType error_type,
36 const std::string& message); 36 const std::string& message);
37 ~PresentationError(); 37 ~PresentationError();
38 38
39 const PresentationErrorType error_type; 39 const PresentationErrorType error_type;
40 const std::string message; 40 const std::string message;
41 }; 41 };
42 42
43 } // namespace content 43 } // namespace content
44 44
45 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_H_ 45 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_H_
OLDNEW
« no previous file with comments | « components/policy/core/common/policy_namespace.h ('k') | content/public/browser/presentation_session_message.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698