blob: 2c694aab9cac6a569b3c5dbdefa20416abf64281 [file] [log] [blame]
{
"key": "{{ MANIFEST_KEY }}",
"name": "__MSG_PRODUCT_NAME__",
"version": "{{ FULL_APP_VERSION }}",
"description": "__MSG_PRODUCT_DESCRIPTION__",
"manifest_version": 2,
"default_locale": "en",
"minimum_chrome_version": "32",
"app": {
{% if webapp_type == 'v1' %}
"launch": {
"local_path": "main.html"
}
{% else %}
"background": {
"page": "background.html"
}
{% endif %}
},
{% if webapp_type == 'v1' %}
"background": {
"page": "background.html",
"persistent": false
},
{% endif %}
"icons": {
"128": "chromoting128.webp",
"48": "chromoting48.webp",
"16": "chromoting16.webp"
},
{% if webapp_type == 'v1' %}
"content_scripts": [
{
"matches": [
"{{ OAUTH2_REDIRECT_URL }}"
],
"js": [ "cs_oauth2_trampoline.js" ]
},
{
"matches": [
"{{ THIRD_PARTY_AUTH_REDIRECT_URL }}"
],
"js": [ "cs_third_party_auth_trampoline.js" ]
}
],
"content_security_policy": "default-src 'self'; script-src 'self' {{ TALK_GADGET_HOST }} https://www.gstatic.com; style-src 'self' https://fonts.googleapis.com; img-src 'self' {{ TALK_GADGET_HOST }} data:; font-src *; connect-src 'self' {{ OAUTH2_ACCOUNTS_HOST }} {{ GOOGLE_API_HOSTS }} {{ TALK_GADGET_HOST }} https://relay.google.com",
{% endif %}
"optional_permissions": [
"<all_urls>"
],
{% if webapp_type != 'v1' %}
"oauth2": {
"client_id": "{{ REMOTING_IDENTITY_API_CLIENT_ID }}",
"scopes": [
{% if USE_GCD %}
"https://www.googleapis.com/auth/clouddevices",
{% endif %}
"https://www.googleapis.com/auth/chromoting",
"https://www.googleapis.com/auth/googletalk",
"https://www.googleapis.com/auth/userinfo#email"
]
},
"sandbox": {
"pages": [ "wcs_sandbox.html" ]
},
{% endif %}
"permissions": [
"{{ OAUTH2_ACCOUNTS_HOST }}/*",
"{{ OAUTH2_API_BASE_URL }}/*",
"{{ DIRECTORY_API_BASE_URL }}/*",
"{{ TELEMETRY_API_BASE_URL }}/*",
"{{ TALK_GADGET_HOST }}/talkgadget/*",
"https://relay.google.com/*",
{% if PROXY_URL != '' %}
"{{ PROXY_URL }}",
{% endif %}
"storage",
"clipboardRead",
"clipboardWrite",
"metricsPrivate",
"nativeMessaging"
{% if webapp_type != 'v1' %}
,
{"fileSystem": ["write"]},
"fullscreen",
"identity",
"contextMenus",
"overrideEscFullscreen"
{% endif %}
{% if webapp_type != 'v1' %}
,{
"socket": [
"udp-send-to",
"udp-bind",
"udp-multicast-membership",
"resolve-host",
"network-state"
]
}
{% endif %}
]
{% if webapp_type != 'v1' %}
,"sockets": {
"tcp": {
"connect": "{{ XMPP_SERVER }}"
}
}
{% endif %}
}