Index: components/safe_json/BUILD.gn |
diff --git a/components/safe_json/BUILD.gn b/components/safe_json/BUILD.gn |
index 9797135005fe221d0e75fd36c84d00d644685a34..0f4ce37cafa032285e4c5e1c0f33f5a95d2ee471 100644 |
--- a/components/safe_json/BUILD.gn |
+++ b/components/safe_json/BUILD.gn |
@@ -23,12 +23,11 @@ |
] |
deps = [ |
+ ":messages", |
"//base", |
- "//components/safe_json/public/interfaces", |
"//components/strings", |
"//content/public/browser", |
- "//content/public/common", |
- "//mojo/edk/system", |
+ "//ipc", |
"//ui/base", |
] |
@@ -40,9 +39,9 @@ |
] |
deps += [ "android:safe_json_jni_headers" ] |
deps -= [ |
- "//components/safe_json/public/interfaces", |
+ ":messages", |
"//content/public/browser", |
- "//mojo/edk/system", |
+ "//ipc", |
] |
} |
} |
@@ -75,3 +74,34 @@ |
"//base", |
] |
} |
+ |
+# This is a separate source set so that it can be shared between safe_json |
+# (which can be used from any process) and the message filter (which depends on |
+# the utility process and hence indirectly Blink. |
+source_set("messages") { |
+ sources = [ |
+ "safe_json_parser_messages.cc", |
+ "safe_json_parser_messages.h", |
+ ] |
+ |
+ deps = [ |
+ "//content/public/common", |
+ "//ipc", |
+ ] |
+} |
+ |
+# GYP version: components/safe_json.gypi:safe_json_parser_message_filter |
+source_set("safe_json_parser_message_filter") { |
+ sources = [ |
+ "safe_json_parser_message_filter.cc", |
+ "safe_json_parser_message_filter.h", |
+ ] |
+ |
+ deps = [ |
+ ":messages", |
+ "//base", |
+ "//content/public/common", |
+ "//content/public/utility", |
+ "//ipc", |
+ ] |
+} |