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

Side by Side Diff: chrome/common/extensions/extension_constants.cc

Issue 402029: Don't allow content scripts to execute on file:// urls.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 "An extension cannot have both a page action and a browser action."; 184 "An extension cannot have both a page action and a browser action.";
183 const char* kThemesCannotContainExtensions = 185 const char* kThemesCannotContainExtensions =
184 "A theme cannot contain extensions code."; 186 "A theme cannot contain extensions code.";
185 const char* kLocalesNoDefaultLocaleSpecified = 187 const char* kLocalesNoDefaultLocaleSpecified =
186 "Localization used, but default_locale wasn't specified in the manifest."; 188 "Localization used, but default_locale wasn't specified in the manifest.";
187 const char* kLocalesNoValidLocaleNamesListed = 189 const char* kLocalesNoValidLocaleNamesListed =
188 "No valid locale name could be found in _locales directory."; 190 "No valid locale name could be found in _locales directory.";
189 const char* kInvalidOptionsPage = 191 const char* kInvalidOptionsPage =
190 "Invalid value for 'options_page'."; 192 "Invalid value for 'options_page'.";
191 } // namespace extension_manifest_errors 193 } // namespace extension_manifest_errors
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_constants.h ('k') | chrome/test/data/extensions/api_test/stubs/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698