| 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;
|
|
|