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

Unified Diff: extensions/common/api/api.gyp

Issue 797183005: Add a mimeHandler extension API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@streams-lifetime
Patch Set: rebase 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
« no previous file with comments | « extensions/common/api/_manifest_features.json ('k') | extensions/common/api/mime_handler.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/api/api.gyp
diff --git a/extensions/common/api/api.gyp b/extensions/common/api/api.gyp
index e9d07deddf47c7d4ecf5443b99fb543876be51f6..ea7e4c19530af830bd329e4943cb4d5d6e6096b4 100644
--- a/extensions/common/api/api.gyp
+++ b/extensions/common/api/api.gyp
@@ -5,6 +5,20 @@
{
'targets': [
{
+ # GN version: //extensions/common/api:mojom
+ 'target_name': 'extensions_api_mojom',
+ # The type of this target must be none. This is so that resources can
+ # depend upon this target for generating the js bindings files. Any
+ # generated cpp files must be listed explicitly in chrome_api.
+ 'type': 'none',
+ 'includes': [
+ '../../../third_party/mojo/mojom_bindings_generator.gypi',
+ ],
+ 'sources': [
+ 'mime_handler.mojom',
+ ],
+ },
+ {
# GN version: //extensions/common/api
'target_name': 'extensions_api',
'type': 'static_library',
@@ -15,6 +29,14 @@
'../../../build/json_schema_compile.gypi',
'schemas.gypi',
],
+ 'dependencies': [
+ 'extensions_api_mojom',
+ '../../../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
+ ],
+ 'sources': [
+ '<(SHARED_INTERMEDIATE_DIR)/extensions/common/api/mime_handler.mojom.cc',
+ '<(SHARED_INTERMEDIATE_DIR)/extensions/common/api/mime_handler.mojom.h',
+ ],
},
{
# Protobuf compiler / generator for chrome.cast.channel-related protocol buffers.
« no previous file with comments | « extensions/common/api/_manifest_features.json ('k') | extensions/common/api/mime_handler.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698