OLD | NEW |
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" | |
9 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
10 | 9 |
11 namespace extensions { | 10 namespace extensions { |
12 | 11 |
13 // Scheme we serve extension content from. | 12 // Scheme we serve extension content from. |
14 extern const char kExtensionScheme[]; | 13 extern const char kExtensionScheme[]; |
15 | 14 |
16 // Canonical schemes you can use as input to GURL.SchemeIs(). | 15 // Canonical schemes you can use as input to GURL.SchemeIs(). |
17 extern const char kExtensionResourceScheme[]; | 16 extern const char kExtensionResourceScheme[]; |
18 | 17 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // The name of the database inside the profile where chrome-internal | 81 // The name of the database inside the profile where chrome-internal |
83 // extension state resides. | 82 // extension state resides. |
84 extern const char kStateStoreName[]; | 83 extern const char kStateStoreName[]; |
85 | 84 |
86 // The name of the database inside the profile where declarative extension | 85 // The name of the database inside the profile where declarative extension |
87 // rules are stored. | 86 // rules are stored. |
88 extern const char kRulesStoreName[]; | 87 extern const char kRulesStoreName[]; |
89 | 88 |
90 } // namespace extensions | 89 } // namespace extensions |
91 | 90 |
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 | |
131 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ | 91 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ |
OLD | NEW |