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

Unified Diff: extensions/common/api/BUILD.gn

Issue 797183005: Add a mimeHandler extension API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@streams-lifetime
Patch Set: Created 5 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: extensions/common/api/BUILD.gn
diff --git a/extensions/common/api/BUILD.gn b/extensions/common/api/BUILD.gn
index 33126e687a632a4e77b304cdf17a166dc2059a41..fe9b005ed5721e51296ecb74d1110f331b3b382d 100644
--- a/extensions/common/api/BUILD.gn
+++ b/extensions/common/api/BUILD.gn
@@ -4,16 +4,32 @@
import("//build/config/features.gni")
import("//build/json_schema_api.gni")
+import("//mojo/public/tools/bindings/mojom.gni")
import("schemas.gni")
assert(enable_extensions)
-# GYP version: extensions/common/api/api.gyp:extensions_api
-json_schema_api("api") {
+json_schema_api("generated_api") {
schemas = true
bundle = true
}
+# GYP version: extensions/common/api/api.gyp:extensions_api_mojom
+mojom("mojom") {
+ sources = []
+ sources = [
+ "mime_handler.mojom",
+ ]
+}
+
+# GYP version: extensions/common/api/api.gyp:extensions_api
+source_set("api") {
+ deps = [
+ ":mojom",
+ ":generated_api",
+ ]
+}
+
# GYP version: extensions/browser/api/api_registration.gyp:extensions_api_registration
json_schema_api("api_registration") {
impl_dir = "//extensions/browser/api"

Powered by Google App Engine
This is Rietveld 408576698