| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/common/extensions/extension_constants.h" | 5 #include "chrome/common/extensions/extension_constants.h" |
| 6 | 6 |
| 7 namespace extension_manifest_keys { | 7 namespace extension_manifest_keys { |
| 8 | 8 |
| 9 const wchar_t* kBackground = L"background_page"; | 9 const wchar_t* kBackground = L"background_page"; |
| 10 const wchar_t* kBrowserAction = L"browser_action"; | 10 const wchar_t* kBrowserAction = L"browser_action"; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 const char* kInvalidGlob = | 84 const char* kInvalidGlob = |
| 85 "Invalid value for 'content_scripts[*].*[*]'."; | 85 "Invalid value for 'content_scripts[*].*[*]'."; |
| 86 const char* kInvalidIcons = | 86 const char* kInvalidIcons = |
| 87 "Invalid value for 'icons'."; | 87 "Invalid value for 'icons'."; |
| 88 const char* kInvalidIconPath = | 88 const char* kInvalidIconPath = |
| 89 "Invalid value for 'icons[\"*\"]'."; | 89 "Invalid value for 'icons[\"*\"]'."; |
| 90 const char* kInvalidJs = | 90 const char* kInvalidJs = |
| 91 "Invalid value for 'content_scripts[*].js[*]'."; | 91 "Invalid value for 'content_scripts[*].js[*]'."; |
| 92 const char* kInvalidJsList = | 92 const char* kInvalidJsList = |
| 93 "Required value 'content_scripts[*].js is invalid."; | 93 "Required value 'content_scripts[*].js is invalid."; |
| 94 const char* kInvalidJsMatches = |
| 95 "Content scripts can not be executed on file:// urls."; |
| 94 const char* kInvalidKey = | 96 const char* kInvalidKey = |
| 95 "Value 'key' is missing or invalid."; | 97 "Value 'key' is missing or invalid."; |
| 96 const char* kInvalidManifest = | 98 const char* kInvalidManifest = |
| 97 "Manifest file is invalid."; | 99 "Manifest file is invalid."; |
| 98 const char* kInvalidMatchCount = | 100 const char* kInvalidMatchCount = |
| 99 "Invalid value for 'content_scripts[*].matches. There must be at least one " | 101 "Invalid value for 'content_scripts[*].matches. There must be at least one " |
| 100 "match specified."; | 102 "match specified."; |
| 101 const char* kInvalidMatch = | 103 const char* kInvalidMatch = |
| 102 "Invalid value for 'content_scripts[*].matches[*]'."; | 104 "Invalid value for 'content_scripts[*].matches[*]'."; |
| 103 const char* kInvalidMatches = | 105 const char* kInvalidMatches = |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 "Invalid value for 'options_page'."; | 192 "Invalid value for 'options_page'."; |
| 191 } // namespace extension_manifest_errors | 193 } // namespace extension_manifest_errors |
| 192 | 194 |
| 193 namespace extension_urls { | 195 namespace extension_urls { |
| 194 const char* kGalleryBrowsePrefix = "https://chrome.google.com/extensions"; | 196 const char* kGalleryBrowsePrefix = "https://chrome.google.com/extensions"; |
| 195 const char* kGalleryDownloadPrefix = | 197 const char* kGalleryDownloadPrefix = |
| 196 "https://clients2.googleusercontent.com/crx/download"; | 198 "https://clients2.googleusercontent.com/crx/download"; |
| 197 const char* kMiniGalleryBrowsePrefix = "https://tools.google.com/chrome/"; | 199 const char* kMiniGalleryBrowsePrefix = "https://tools.google.com/chrome/"; |
| 198 const char* kMiniGalleryDownloadPrefix = "https://dl-ssl.google.com/chrome/"; | 200 const char* kMiniGalleryDownloadPrefix = "https://dl-ssl.google.com/chrome/"; |
| 199 } | 201 } |
| OLD | NEW |