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

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

Issue 2886923002: [extension SW]: Support event listener registration and event dispatching. (Closed)
Patch Set: sync Created 3 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
« no previous file with comments | « extensions/browser/extension_prefs.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/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
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 extension event listeners registered
119 // from a non-service worker context
120 extern const int kNonWorkerThreadId;
121
116 // Enumeration of possible app launch sources. 122 // Enumeration of possible app launch sources.
117 // This should be kept in sync with LaunchSource in 123 // This should be kept in sync with LaunchSource in
118 // extensions/common/api/app_runtime.idl, and GetLaunchSourceEnum() in 124 // extensions/common/api/app_runtime.idl, and GetLaunchSourceEnum() in
119 // extensions/browser/api/app_runtime/app_runtime_api.cc. 125 // extensions/browser/api/app_runtime/app_runtime_api.cc.
120 // Note the enumeration is used in UMA histogram so entries 126 // Note the enumeration is used in UMA histogram so entries
121 // should not be re-ordered or removed. 127 // should not be re-ordered or removed.
122 enum AppLaunchSource { 128 enum AppLaunchSource {
123 SOURCE_NONE, 129 SOURCE_NONE,
124 SOURCE_UNTRACKED, 130 SOURCE_UNTRACKED,
125 SOURCE_APP_LAUNCHER, 131 SOURCE_APP_LAUNCHER,
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 225
220 // Extension ids used by Hangouts. 226 // Extension ids used by Hangouts.
221 extern const char* const kHangoutsExtensionIds[6]; 227 extern const char* const kHangoutsExtensionIds[6];
222 228
223 // Error message when enterprise policy blocks scripting of webpage. 229 // Error message when enterprise policy blocks scripting of webpage.
224 extern const char kPolicyBlockedScripting[]; 230 extern const char kPolicyBlockedScripting[];
225 231
226 } // namespace extension_misc 232 } // namespace extension_misc
227 233
228 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ 234 #endif // EXTENSIONS_COMMON_CONSTANTS_H_
OLDNEW
« no previous file with comments | « extensions/browser/extension_prefs.cc ('k') | extensions/common/constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698