tsepez@chromium.org | 4afe8f7 | 2012-10-24 08:03:35 +0900 | [diff] [blame] | 1 | // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef IPC_IPC_MESSAGE_START_H_ |
| 6 | #define IPC_IPC_MESSAGE_START_H_ |
| 7 | |
| 8 | // Used by IPC_BEGIN_MESSAGES so that each message class starts from a unique |
| 9 | // base. Messages have unique IDs across channels in order for the IPC logging |
| 10 | // code to figure out the message class from its ID. |
Tom Sepez | 08ce100 | 2017-08-03 01:44:33 +0900 | [diff] [blame] | 11 | // |
| 12 | // You should no longer be adding any new message classes. Instead, use mojo |
| 13 | // for all new work. |
tsepez@chromium.org | 4afe8f7 | 2012-10-24 08:03:35 +0900 | [diff] [blame] | 14 | enum IPCMessageStart { |
| 15 | AutomationMsgStart = 0, |
nasko@chromium.org | a36f001 | 2013-10-04 02:24:55 +0900 | [diff] [blame] | 16 | FrameMsgStart, |
lfg | 079d9b2 | 2016-03-05 08:09:07 +0900 | [diff] [blame] | 17 | PageMsgStart, |
tsepez@chromium.org | 4afe8f7 | 2012-10-24 08:03:35 +0900 | [diff] [blame] | 18 | ViewMsgStart, |
jamesr@chromium.org | 1dfc732 | 2013-04-27 10:08:15 +0900 | [diff] [blame] | 19 | InputMsgStart, |
tsepez@chromium.org | 4afe8f7 | 2012-10-24 08:03:35 +0900 | [diff] [blame] | 20 | TestMsgStart, |
tsepez@chromium.org | 4afe8f7 | 2012-10-24 08:03:35 +0900 | [diff] [blame] | 21 | WorkerMsgStart, |
| 22 | NaClMsgStart, |
fsamuel | 53b24a2 | 2016-02-25 12:56:16 +0900 | [diff] [blame] | 23 | GpuChannelMsgStart, |
fsamuel | 0fd5a1b | 2016-02-26 02:51:51 +0900 | [diff] [blame] | 24 | MediaMsgStart, |
tsepez@chromium.org | 4afe8f7 | 2012-10-24 08:03:35 +0900 | [diff] [blame] | 25 | PpapiMsgStart, |
| 26 | FirefoxImporterUnittestMsgStart, |
tsepez@chromium.org | 4afe8f7 | 2012-10-24 08:03:35 +0900 | [diff] [blame] | 27 | DOMStorageMsgStart, |
tsepez@chromium.org | 4afe8f7 | 2012-10-24 08:03:35 +0900 | [diff] [blame] | 28 | SpeechRecognitionMsgStart, |
tsepez@chromium.org | 4afe8f7 | 2012-10-24 08:03:35 +0900 | [diff] [blame] | 29 | SafeBrowsingMsgStart, |
| 30 | P2PMsgStart, |
tsepez@chromium.org | 4afe8f7 | 2012-10-24 08:03:35 +0900 | [diff] [blame] | 31 | ResourceMsgStart, |
| 32 | FileSystemMsgStart, |
tsepez@chromium.org | 4afe8f7 | 2012-10-24 08:03:35 +0900 | [diff] [blame] | 33 | BlobMsgStart, |
tsepez@chromium.org | 4afe8f7 | 2012-10-24 08:03:35 +0900 | [diff] [blame] | 34 | AudioMsgStart, |
toyoshim@chromium.org | 2458cfd | 2014-02-04 16:05:47 +0900 | [diff] [blame] | 35 | MidiMsgStart, |
tsepez@chromium.org | 4afe8f7 | 2012-10-24 08:03:35 +0900 | [diff] [blame] | 36 | ChromeMsgStart, |
| 37 | DragMsgStart, |
| 38 | PrintMsgStart, |
| 39 | SpellCheckMsgStart, |
| 40 | ExtensionMsgStart, |
tsepez@chromium.org | 4afe8f7 | 2012-10-24 08:03:35 +0900 | [diff] [blame] | 41 | TextInputClientMsgStart, |
tsepez@chromium.org | 4afe8f7 | 2012-10-24 08:03:35 +0900 | [diff] [blame] | 42 | JavaBridgeMsgStart, |
tsepez@chromium.org | 4afe8f7 | 2012-10-24 08:03:35 +0900 | [diff] [blame] | 43 | ShellMsgStart, |
| 44 | AccessibilityMsgStart, |
| 45 | PrerenderMsgStart, |
| 46 | ChromotingMsgStart, |
tsepez@chromium.org | 4afe8f7 | 2012-10-24 08:03:35 +0900 | [diff] [blame] | 47 | BrowserPluginMsgStart, |
tsepez@chromium.org | 4afe8f7 | 2012-10-24 08:03:35 +0900 | [diff] [blame] | 48 | AndroidWebViewMsgStart, |
| 49 | MetroViewerMsgStart, |
| 50 | CCMsgStart, |
| 51 | MediaPlayerMsgStart, |
jbauman@chromium.org | ad20135 | 2012-12-08 10:55:07 +0900 | [diff] [blame] | 52 | TracingMsgStart, |
jiayl@chromium.org | 5842636 | 2013-01-10 13:04:40 +0900 | [diff] [blame] | 53 | PeerConnectionTrackerMsgStart, |
jeremya@chromium.org | dca3789 | 2013-03-18 14:54:50 +0900 | [diff] [blame] | 54 | AppShimMsgStart, |
grunell@chromium.org | c92462a | 2013-04-18 18:17:02 +0900 | [diff] [blame] | 55 | WebRtcLoggingMsgStart, |
dmazzoni@chromium.org | 2d71f6a | 2013-05-03 13:39:33 +0900 | [diff] [blame] | 56 | TtsMsgStart, |
yael.aharon@intel.com | 364bea0 | 2013-06-18 09:17:35 +0900 | [diff] [blame] | 57 | NaClHostMsgStart, |
qinmin@chromium.org | ffe6553 | 2013-09-19 15:53:56 +0900 | [diff] [blame] | 58 | EncryptedMediaMsgStart, |
jsbell | 4f286e9 | 2015-03-24 06:03:44 +0900 | [diff] [blame] | 59 | CacheStorageMsgStart, |
alecflett@chromium.org | 974bc39 | 2013-09-22 01:12:49 +0900 | [diff] [blame] | 60 | ServiceWorkerMsgStart, |
kinuko@chromium.org | 5a92e64 | 2014-01-09 21:42:45 +0900 | [diff] [blame] | 61 | EmbeddedWorkerMsgStart, |
hubbe@chromium.org | 89c6c9d | 2014-02-16 04:45:17 +0900 | [diff] [blame] | 62 | CastMsgStart, |
joi@chromium.org | b358265 | 2014-03-13 19:04:49 +0900 | [diff] [blame] | 63 | MediaStreamTrackMetricsHostMsgStart, |
derat@chromium.org | c9f8143 | 2014-03-14 00:07:08 +0900 | [diff] [blame] | 64 | ChromeExtensionMsgStart, |
mnaganov@chromium.org | 96486d2 | 2014-05-06 19:26:43 +0900 | [diff] [blame] | 65 | GinJavaBridgeMsgStart, |
thestig@chromium.org | a99794c | 2014-06-27 13:52:32 +0900 | [diff] [blame] | 66 | ChromeUtilityPrintingMsgStart, |
grunell@chromium.org | aa19c59 | 2014-06-19 04:39:04 +0900 | [diff] [blame] | 67 | AecDumpMsgStart, |
spang@chromium.org | 7435206 | 2014-06-26 15:46:02 +0900 | [diff] [blame] | 68 | OzoneGpuMsgStart, |
peter@chromium.org | b584db0 | 2014-07-30 07:40:09 +0900 | [diff] [blame] | 69 | PlatformNotificationMsgStart, |
peter | 5e82286 | 2014-10-28 02:57:35 +0900 | [diff] [blame] | 70 | LayoutTestMsgStart, |
tibell | 12f1822 | 2016-07-25 10:00:43 +0900 | [diff] [blame] | 71 | NetworkHintsMsgStart, |
gunsch | 0932013 | 2014-12-17 15:49:24 +0900 | [diff] [blame] | 72 | CastMediaMsgStart, |
boliu | 22ab238 | 2015-11-05 09:52:53 +0900 | [diff] [blame] | 73 | SyncCompositorMsgStart, |
fsamuel | 54748e1 | 2015-04-22 03:41:39 +0900 | [diff] [blame] | 74 | ExtensionsGuestViewMsgStart, |
fsamuel | 7b7fcd2 | 2015-02-03 10:29:26 +0900 | [diff] [blame] | 75 | GuestViewMsgStart, |
derekjchow | 75e0f67 | 2015-04-18 08:52:42 +0900 | [diff] [blame] | 76 | // Note: CastCryptoMsgStart and CastChannelMsgStart reserved for Chromecast |
| 77 | // internal code. Contact gunsch@ before changing/removing. |
gunsch | 21ca5c0 | 2015-02-24 10:05:36 +0900 | [diff] [blame] | 78 | CastCryptoMsgStart, |
derekjchow | 75e0f67 | 2015-04-18 08:52:42 +0900 | [diff] [blame] | 79 | CastChannelMsgStart, |
erikchen | f29dc68 | 2015-09-26 03:30:03 +0900 | [diff] [blame] | 80 | IPCTestMsgStart, |
kulshin | 11e05e6 | 2015-12-15 08:12:54 +0900 | [diff] [blame] | 81 | DWriteFontProxyMsgStart, |
dalecurtis | 5dd55fc | 2016-01-28 06:10:25 +0900 | [diff] [blame] | 82 | MediaPlayerDelegateMsgStart, |
watk | dfc4563 | 2016-02-18 11:22:19 +0900 | [diff] [blame] | 83 | SurfaceViewManagerMsgStart, |
lazyboy | 0125b76 | 2016-05-24 09:55:16 +0900 | [diff] [blame] | 84 | ExtensionWorkerMsgStart, |
engedy | 93728d9 | 2016-06-08 22:31:18 +0900 | [diff] [blame] | 85 | SubresourceFilterMsgStart, |
alecflett@chromium.org | 974bc39 | 2013-09-22 01:12:49 +0900 | [diff] [blame] | 86 | LastIPCMsgStart // Must come last. |
tsepez@chromium.org | 4afe8f7 | 2012-10-24 08:03:35 +0900 | [diff] [blame] | 87 | }; |
| 88 | |
| 89 | #endif // IPC_IPC_MESSAGE_START_H_ |