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/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "ui/base/layout.h" | 9 #include "ui/base/layout.h" |
10 | 10 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
106 // content/public/common. | 106 // content/public/common. |
107 extern const int64_t kInvalidServiceWorkerVersionId; | 107 extern const int64_t kInvalidServiceWorkerVersionId; |
108 | 108 |
109 // The extension id of the Web Store component application. | 109 // The extension id of the Web Store component application. |
110 extern const char kWebStoreAppId[]; | 110 extern const char kWebStoreAppId[]; |
111 | 111 |
112 // The key used for signing some pieces of data from the webstore. | 112 // The key used for signing some pieces of data from the webstore. |
113 extern const uint8_t kWebstoreSignaturesPublicKey[]; | 113 extern const uint8_t kWebstoreSignaturesPublicKey[]; |
114 extern const size_t kWebstoreSignaturesPublicKeySize; | 114 extern const size_t kWebstoreSignaturesPublicKeySize; |
115 | 115 |
116 // A thread identifier used in extension events where the thread id in question | |
117 // does not belong to a worker thread. | |
118 // This is the default thread id used for non service worker extension events. | |
Devlin
2017/06/01 04:54:50
nit: s/non service worker extension events/extensi
lazyboy
2017/06/01 23:33:29
Done.
| |
119 extern const int kNonWorkerThreadId; | |
120 | |
116 // Enumeration of possible app launch sources. | 121 // Enumeration of possible app launch sources. |
117 // This should be kept in sync with LaunchSource in | 122 // This should be kept in sync with LaunchSource in |
118 // extensions/common/api/app_runtime.idl, and GetLaunchSourceEnum() in | 123 // extensions/common/api/app_runtime.idl, and GetLaunchSourceEnum() in |
119 // extensions/browser/api/app_runtime/app_runtime_api.cc. | 124 // extensions/browser/api/app_runtime/app_runtime_api.cc. |
120 // Note the enumeration is used in UMA histogram so entries | 125 // Note the enumeration is used in UMA histogram so entries |
121 // should not be re-ordered or removed. | 126 // should not be re-ordered or removed. |
122 enum AppLaunchSource { | 127 enum AppLaunchSource { |
123 SOURCE_NONE, | 128 SOURCE_NONE, |
124 SOURCE_UNTRACKED, | 129 SOURCE_UNTRACKED, |
125 SOURCE_APP_LAUNCHER, | 130 SOURCE_APP_LAUNCHER, |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
219 | 224 |
220 // Extension ids used by Hangouts. | 225 // Extension ids used by Hangouts. |
221 extern const char* const kHangoutsExtensionIds[6]; | 226 extern const char* const kHangoutsExtensionIds[6]; |
222 | 227 |
223 // Error message when enterprise policy blocks scripting of webpage. | 228 // Error message when enterprise policy blocks scripting of webpage. |
224 extern const char kPolicyBlockedScripting[]; | 229 extern const char kPolicyBlockedScripting[]; |
225 | 230 |
226 } // namespace extension_misc | 231 } // namespace extension_misc |
227 | 232 |
228 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ | 233 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ |
OLD | NEW |