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

Unified Diff: content/public/common/presentation_session.h

Issue 2613153003: [Presentation API] Replaces type converters with typemaps (Closed)
Patch Set: Add more OWNERS foo Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/public/common/presentation_session.h
diff --git a/content/public/common/presentation_session.h b/content/public/common/presentation_session.h
index 87bafb4b140cc45bf33603184280263f287c86db..e7a2bf3efa07b39e68e394bc64719f6617b64c25 100644
--- a/content/public/common/presentation_session.h
+++ b/content/public/common/presentation_session.h
@@ -31,12 +31,13 @@ enum PresentationConnectionCloseReason {
// Represents a presentation session that has been established via either
// browser actions or Presentation API.
struct CONTENT_EXPORT PresentationSessionInfo {
+ PresentationSessionInfo() = default;
PresentationSessionInfo(const GURL& presentation_url,
const std::string& presentation_id);
~PresentationSessionInfo();
- const GURL presentation_url;
- const std::string presentation_id;
+ GURL presentation_url;
+ std::string presentation_id;
};
// Possible reasons why an attempt to create a presentation session failed.
@@ -49,12 +50,13 @@ enum PresentationErrorType {
// Struct returned when an attempt to create a presentation session failed.
struct CONTENT_EXPORT PresentationError {
+ PresentationError() = default;
PresentationError(PresentationErrorType error_type,
const std::string& message);
~PresentationError();
- const PresentationErrorType error_type;
- const std::string message;
+ PresentationErrorType error_type;
+ std::string message;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698