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

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

Issue 2622993002: [Presentation API] Move presentation.mojom to content/common/presentation (Closed)
Patch Set: Fix presentation_service_delegate. DEPS failure 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/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 ce7bb0021f7d0d921520aaf818e45d4b2c48d427..58aa580b42e2943fd593dd993cbeca43c016ec02 100644
--- a/content/browser/presentation/presentation_type_converters.h
+++ b/content/browser/presentation/presentation_type_converters.h
@@ -6,18 +6,18 @@
#define CONTENT_BROWSER_PRESENTATION_PRESENTATION_TYPE_CONVERTERS_H_
#include "content/common/content_export.h"
+#include "content/common/presentation/presentation.mojom.h"
#include "content/public/common/presentation_session.h"
-#include "third_party/WebKit/public/platform/modules/presentation/presentation.mojom.h"
namespace content {
-CONTENT_EXPORT blink::mojom::PresentationErrorType PresentationErrorTypeToMojo(
- PresentationErrorType input);
+CONTENT_EXPORT content::mojom::PresentationErrorType
+PresentationErrorTypeToMojo(PresentationErrorType input);
-CONTENT_EXPORT blink::mojom::PresentationConnectionState
+CONTENT_EXPORT content::mojom::PresentationConnectionState
PresentationConnectionStateToMojo(PresentationConnectionState state);
-CONTENT_EXPORT blink::mojom::PresentationConnectionCloseReason
+CONTENT_EXPORT content::mojom::PresentationConnectionCloseReason
PresentationConnectionCloseReasonToMojo(
PresentationConnectionCloseReason reason);
} // namespace content
@@ -25,12 +25,12 @@ PresentationConnectionCloseReasonToMojo(
namespace mojo {
template <>
-struct TypeConverter<blink::mojom::PresentationSessionInfoPtr,
+struct TypeConverter<content::mojom::PresentationSessionInfoPtr,
content::PresentationSessionInfo> {
- static blink::mojom::PresentationSessionInfoPtr Convert(
+ static content::mojom::PresentationSessionInfoPtr Convert(
const content::PresentationSessionInfo& input) {
- blink::mojom::PresentationSessionInfoPtr output(
- blink::mojom::PresentationSessionInfo::New());
+ content::mojom::PresentationSessionInfoPtr output(
+ content::mojom::PresentationSessionInfo::New());
output->url = input.presentation_url;
output->id = input.presentation_id;
return output;
@@ -39,20 +39,20 @@ struct TypeConverter<blink::mojom::PresentationSessionInfoPtr,
template <>
struct TypeConverter<content::PresentationSessionInfo,
- blink::mojom::PresentationSessionInfoPtr> {
+ content::mojom::PresentationSessionInfoPtr> {
static content::PresentationSessionInfo Convert(
- const blink::mojom::PresentationSessionInfoPtr& input) {
+ const content::mojom::PresentationSessionInfoPtr& input) {
return content::PresentationSessionInfo(input->url, input->id);
}
};
template <>
-struct TypeConverter<blink::mojom::PresentationErrorPtr,
+struct TypeConverter<content::mojom::PresentationErrorPtr,
content::PresentationError> {
- static blink::mojom::PresentationErrorPtr Convert(
+ static content::mojom::PresentationErrorPtr Convert(
const content::PresentationError& input) {
- blink::mojom::PresentationErrorPtr output(
- blink::mojom::PresentationError::New());
+ content::mojom::PresentationErrorPtr output(
+ content::mojom::PresentationError::New());
output->error_type = PresentationErrorTypeToMojo(input.error_type);
output->message = input.message;
return output;

Powered by Google App Engine
This is Rietveld 408576698