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

Side by Side Diff: extensions/common/constants.h

Issue 224943004: Revert "Revert 261654 "Move some extension constants out of //chrome."" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/extensions/extension_helper.cc ('k') | extensions/common/constants.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef EXTENSIONS_COMMON_CONSTANTS_H_ 5 #ifndef EXTENSIONS_COMMON_CONSTANTS_H_
6 #define EXTENSIONS_COMMON_CONSTANTS_H_ 6 #define EXTENSIONS_COMMON_CONSTANTS_H_
7 7
8 #include "base/basictypes.h"
8 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
9 10
10 namespace extensions { 11 namespace extensions {
11 12
12 // Scheme we serve extension content from. 13 // Scheme we serve extension content from.
13 extern const char kExtensionScheme[]; 14 extern const char kExtensionScheme[];
14 15
15 // Canonical schemes you can use as input to GURL.SchemeIs(). 16 // Canonical schemes you can use as input to GURL.SchemeIs().
16 extern const char kExtensionResourceScheme[]; 17 extern const char kExtensionResourceScheme[];
17 18
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // The name of the database inside the profile where chrome-internal 82 // The name of the database inside the profile where chrome-internal
82 // extension state resides. 83 // extension state resides.
83 extern const char kStateStoreName[]; 84 extern const char kStateStoreName[];
84 85
85 // The name of the database inside the profile where declarative extension 86 // The name of the database inside the profile where declarative extension
86 // rules are stored. 87 // rules are stored.
87 extern const char kRulesStoreName[]; 88 extern const char kRulesStoreName[];
88 89
89 } // namespace extensions 90 } // namespace extensions
90 91
92 namespace extension_misc {
93
94 // Matches chrome.windows.WINDOW_ID_NONE.
95 const int kUnknownWindowId = -1;
96
97 // Matches chrome.windows.WINDOW_ID_CURRENT.
98 const int kCurrentWindowId = -2;
99
100 // Note: this structure is an ASN.1 which encodes the algorithm used
101 // with its parameters. This is defined in PKCS #1 v2.1 (RFC 3447).
102 // It is encoding: { OID sha1WithRSAEncryption PARAMETERS NULL }
103 const uint8 kSignatureAlgorithm[15] = {0x30, 0x0d, 0x06, 0x09, 0x2a,
104 0x86, 0x48, 0x86, 0xf7, 0x0d,
105 0x01, 0x01, 0x05, 0x05, 0x00};
106
107 // NOTE: If you change this list, you should also change kExtensionIconSizes
108 // in cc file.
109 enum ExtensionIcons {
110 EXTENSION_ICON_GIGANTOR = 512,
111 EXTENSION_ICON_EXTRA_LARGE = 256,
112 EXTENSION_ICON_LARGE = 128,
113 EXTENSION_ICON_MEDIUM = 48,
114 EXTENSION_ICON_SMALL = 32,
115 EXTENSION_ICON_SMALLISH = 24,
116 EXTENSION_ICON_ACTION = 19,
117 EXTENSION_ICON_BITTY = 16,
118 EXTENSION_ICON_INVALID = 0,
119 };
120
121 // List of sizes for extension icons that can be defined in the manifest.
122 extern const int kExtensionIconSizes[];
123 extern const size_t kNumExtensionIconSizes;
124
125 // List of sizes for extension icons that can be defined in the manifest.
126 extern const int kExtensionActionIconSizes[];
127 extern const size_t kNumExtensionActionIconSizes;
128
129 } // namespace extension_misc
130
91 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ 131 #endif // EXTENSIONS_COMMON_CONSTANTS_H_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/extension_helper.cc ('k') | extensions/common/constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698