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

Unified Diff: third_party/WebKit/public/BUILD.gn

Issue 2892953006: WIP POC blob transport over mojo
Patch Set: pass mojo blobs over ipc Created 3 years, 7 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: third_party/WebKit/public/BUILD.gn
diff --git a/third_party/WebKit/public/BUILD.gn b/third_party/WebKit/public/BUILD.gn
index 59cd4bcac46b08af0cf72f75fcf0a8fd3aec5ac3..e82e1ec51917d9d156e59079d908dc3b8b1eb177 100644
--- a/third_party/WebKit/public/BUILD.gn
+++ b/third_party/WebKit/public/BUILD.gn
@@ -731,6 +731,7 @@ mojom("mojo_bindings") {
]
public_deps = [
":android_mojo_bindings",
+ ":blob_mojo_bindings",
"//device/bluetooth/public/interfaces",
"//mojo/common:common_custom_types",
"//ui/gfx/geometry/mojo",
@@ -810,8 +811,42 @@ mojom("offscreen_canvas_mojo_bindings") {
export_header_blink = "third_party/WebKit/public/platform/WebCommon.h"
}
+# The blob_mojo_bindings is separated from the rest of mojom files
+# because its deps contain too many files in Chromium that would pollute the
+# include paths in generated mojom-blink files for other services.
+mojom("blob_mojo_bindings") {
+ visibility = [
+ "//content/*",
+ "//storage/*",
+ ":mojo_bindings",
+ ]
+ visibility_blink = [
+ "//third_party/WebKit/Source/platform",
+ "//content/common:mojo_bindings_blink",
+ ":mojo_bindings_blink",
+ ]
+ sources = [
+ "platform/blobs.mojom",
+ ]
+ deps = [
+ "//mojo/common:common_custom_types",
+ "//url/mojo:url_mojom_gurl",
+ ]
+
+ component_output_prefix = "blink_blob_mojo_bindings"
+
+ # See comment above
+ export_class_attribute = "CONTENT_EXPORT"
+ export_define = "CONTENT_IMPLEMENTATION=1"
+ export_header = "content/common/content_export.h"
+ export_class_attribute_blink = "BLINK_PLATFORM_EXPORT"
+ export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
+ export_header_blink = "third_party/WebKit/public/platform/WebCommon.h"
+}
+
group("generate_mojo_bindings") {
deps = [
+ ":blob_mojo_bindings_blink__generator",
":mojo_bindings_blink__generator",
":offscreen_canvas_mojo_bindings_blink__generator",
]

Powered by Google App Engine
This is Rietveld 408576698