Commit 6e7efcd9 authored by Kevin Marshall's avatar Kevin Marshall Committed by Chromium LUCI CQ

[fuchsia] Make message_port.h into a private library for WebEngine.

The MessagePort conversion functions are no longer used outside of
WebEngine, now that previous clients have migrated to
use //components/cast/message_port instead.

Remove vestigial dep on now-removed 'message_port' target.

Bug: 1081525
Change-Id: Ie3629ff1542b96bfe9594cc5dcb1ef15c671c9c7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2643398
Auto-Submit: Kevin Marshall <kmarshall@chromium.org>
Reviewed-by: default avatarSharon Yang <yangsharon@chromium.org>
Commit-Queue: Sharon Yang <yangsharon@chromium.org>
Cr-Commit-Position: refs/heads/master@{#845821}
parent c8dce8f8
......@@ -46,7 +46,6 @@ if (is_fuchsia) {
"//components/cast/message_port",
"//fuchsia:cast_fidl",
"//fuchsia/base",
"//fuchsia/base:message_port",
]
}
}
......
......@@ -11,7 +11,6 @@
#include "base/fuchsia/fuchsia_logging.h"
#include "components/cast/message_port/message_port_fuchsia.h"
#include "fuchsia/base/mem_buffer_util.h"
#include "fuchsia/base/message_port.h"
namespace chromecast {
namespace bindings {
......
......@@ -56,20 +56,6 @@ source_set("modular") {
]
}
# FIDL/Mojo adapters for MessagePorts.
source_set("message_port") {
sources = [ "message_port.cc" ]
public = [ "message_port.h" ]
deps = [
":base",
"//base",
"//mojo/public/cpp/bindings",
"//third_party/blink/public/common",
"//third_party/blink/public/common:headers",
"//third_party/fuchsia-sdk/sdk/fidl/fuchsia.web",
]
}
source_set("legacymetrics") {
sources = [
"legacymetrics_client.cc",
......
......@@ -109,7 +109,6 @@ component("web_engine_core") {
"//content/public/renderer",
"//fuchsia/base",
"//fuchsia/base:legacymetrics",
"//fuchsia/base:message_port",
"//fuchsia/base:modular",
"//fuchsia/cast_streaming",
"//google_apis",
......@@ -191,6 +190,8 @@ component("web_engine_core") {
"browser/media_player_impl.h",
"browser/media_resource_provider_service.cc",
"browser/media_resource_provider_service.h",
"browser/message_port.cc",
"browser/message_port.h",
"browser/navigation_controller_impl.cc",
"browser/navigation_controller_impl.h",
"browser/navigation_policy_handler.cc",
......
......@@ -35,7 +35,6 @@
#include "content/public/browser/web_contents.h"
#include "content/public/common/was_activated_option.mojom.h"
#include "fuchsia/base/mem_buffer_util.h"
#include "fuchsia/base/message_port.h"
#include "fuchsia/engine/browser/accessibility_bridge.h"
#include "fuchsia/engine/browser/cast_streaming_session_client.h"
#include "fuchsia/engine/browser/context_impl.h"
......@@ -43,6 +42,7 @@
#include "fuchsia/engine/browser/frame_layout_manager.h"
#include "fuchsia/engine/browser/frame_window_tree_host.h"
#include "fuchsia/engine/browser/media_player_impl.h"
#include "fuchsia/engine/browser/message_port.h"
#include "fuchsia/engine/browser/navigation_policy_handler.h"
#include "fuchsia/engine/browser/web_engine_devtools_controller.h"
#include "fuchsia/engine/common/cast_streaming.h"
......
......@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "fuchsia/base/message_port.h"
#include "fuchsia/engine/browser/message_port.h"
#include <stdint.h>
......
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FUCHSIA_BASE_MESSAGE_PORT_H_
#define FUCHSIA_BASE_MESSAGE_PORT_H_
#ifndef FUCHSIA_ENGINE_BROWSER_MESSAGE_PORT_H_
#define FUCHSIA_ENGINE_BROWSER_MESSAGE_PORT_H_
#include <fuchsia/web/cpp/fidl.h>
#include <lib/fidl/cpp/interface_handle.h>
......@@ -46,4 +46,4 @@ base::Optional<fuchsia::web::WebMessage> FidlWebMessageFromBlink(
} // namespace cr_fuchsia
#endif // FUCHSIA_BASE_MESSAGE_PORT_H_
#endif // FUCHSIA_ENGINE_BROWSER_MESSAGE_PORT_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment