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

Side by Side Diff: chrome/browser/extensions/api/content_settings/content_settings_api_constants.cc

Issue 10553018: ContentSettings now uses the JSON Schema Compiler. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: incognito fix Created 8 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/extensions/api/content_settings/content_settings_api_co nstants.h" 5 #include "chrome/browser/extensions/api/content_settings/content_settings_api_co nstants.h"
6 6
7 namespace extensions { 7 namespace extensions {
8 namespace content_settings_api_constants { 8 namespace content_settings_api_constants {
9 9
10 // Keys. 10 // Keys.
11 const char kContentSettingKey[] = "setting"; 11 const char kContentSettingKey[] = "setting";
12 const char kContentSettingsTypeKey[] = "type"; 12 const char kContentSettingsTypeKey[] = "type";
13 const char kDescriptionKey[] = "description"; 13 const char kDescriptionKey[] = "description";
14 const char kIdKey[] = "id"; 14 const char kIdKey[] = "id";
15 const char kPatternKey[] = "pattern"; 15 const char kPatternKey[] = "pattern";
16 const char kPrimaryPatternKey[] = "primaryPattern"; 16 const char kPrimaryPatternKey[] = "primaryPattern";
17 const char kPrimaryUrlKey[] = "primaryUrl";
18 const char kResourceIdentifierKey[] = "resourceIdentifier"; 17 const char kResourceIdentifierKey[] = "resourceIdentifier";
19 const char kRuleKey[] = "rule"; 18 const char kRuleKey[] = "rule";
20 const char kSecondaryPatternKey[] = "secondaryPattern"; 19 const char kSecondaryPatternKey[] = "secondaryPattern";
21 const char kSecondaryUrlKey[] = "secondaryUrl";
22 20
23 // Errors. 21 // Errors.
24 const char kIncognitoContextError[] = 22 const char kIncognitoContextError[] =
25 "Can't modify regular settings from an incognito context."; 23 "Can't modify regular settings from an incognito context.";
26 const char kIncognitoSessionOnlyError[] = 24 const char kIncognitoSessionOnlyError[] =
27 "You cannot read incognito content settings when no incognito window " 25 "You cannot read incognito content settings when no incognito window "
28 "is open."; 26 "is open.";
29 const char kInvalidUrlError[] = "The URL \"*\" is invalid."; 27 const char kInvalidUrlError[] = "The URL \"*\" is invalid.";
30 28
31 } // namespace content_settings_api_constants 29 } // namespace content_settings_api_constants
32 } // namespace extensions 30 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/content_settings/content_settings_api_constants.h ('k') | chrome/common/extensions/api/api.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698