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

Unified Diff: content/browser/presentation/presentation_type_converters.h

Issue 1259073004: [Presentation API] Change ListenForSessionMessages API to client-style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 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/browser/presentation/presentation_type_converters.h
diff --git a/content/browser/presentation/presentation_type_converters.h b/content/browser/presentation/presentation_type_converters.h
index 38a85244ee7bf24839e739543ea9cae76b5f6eb5..f66c3230aba0baffd31ff555ef897b8ddeea7d84 100644
--- a/content/browser/presentation/presentation_type_converters.h
+++ b/content/browser/presentation/presentation_type_converters.h
@@ -35,6 +35,15 @@ struct TypeConverter<presentation::PresentationSessionInfoPtr,
};
template <>
+struct TypeConverter<content::PresentationSessionInfo,
+ presentation::PresentationSessionInfoPtr> {
+ static content::PresentationSessionInfo Convert(
+ const presentation::PresentationSessionInfoPtr& input) {
+ return content::PresentationSessionInfo(input->url, input->id);
+ }
+};
+
+template <>
struct TypeConverter<presentation::PresentationErrorPtr,
content::PresentationError> {
static presentation::PresentationErrorPtr Convert(

Powered by Google App Engine
This is Rietveld 408576698