• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17syntax = "proto2";
18
19package perfetto.protos;
20
21// Details about a legacy Chrome IPC message that is either sent by the event.
22// TODO(eseckler): Also use this message on the receiving side?
23message ChromeLegacyIpc {
24  enum MessageClass {
25    CLASS_UNSPECIFIED = 0;
26    CLASS_AUTOMATION = 1;
27    CLASS_FRAME = 2;
28    CLASS_PAGE = 3;
29    CLASS_VIEW = 4;
30    CLASS_WIDGET = 5;
31    CLASS_INPUT = 6;
32    CLASS_TEST = 7;
33    CLASS_WORKER = 8;
34    CLASS_NACL = 9;
35    CLASS_GPU_CHANNEL = 10;
36    CLASS_MEDIA = 11;
37    CLASS_PPAPI = 12;
38    CLASS_CHROME = 13;
39    CLASS_DRAG = 14;
40    CLASS_PRINT = 15;
41    CLASS_EXTENSION = 16;
42    CLASS_TEXT_INPUT_CLIENT = 17;
43    CLASS_BLINK_TEST = 18;
44    CLASS_ACCESSIBILITY = 19;
45    CLASS_PRERENDER = 20;
46    CLASS_CHROMOTING = 21;
47    CLASS_BROWSER_PLUGIN = 22;
48    CLASS_ANDROID_WEB_VIEW = 23;
49    CLASS_NACL_HOST = 24;
50    CLASS_ENCRYPTED_MEDIA = 25;
51    CLASS_CAST = 26;
52    CLASS_GIN_JAVA_BRIDGE = 27;
53    CLASS_CHROME_UTILITY_PRINTING = 28;
54    CLASS_OZONE_GPU = 29;
55    CLASS_WEB_TEST = 30;
56    CLASS_NETWORK_HINTS = 31;
57    CLASS_EXTENSIONS_GUEST_VIEW = 32;
58    CLASS_GUEST_VIEW = 33;
59    CLASS_MEDIA_PLAYER_DELEGATE = 34;
60    CLASS_EXTENSION_WORKER = 35;
61    CLASS_SUBRESOURCE_FILTER = 36;
62    CLASS_UNFREEZABLE_FRAME = 37;
63  }
64
65  // Corresponds to the message class type defined in Chrome's IPCMessageStart
66  // enum, e.g. FrameMsgStart,
67  optional MessageClass message_class = 1;
68
69  // Line number of the message definition. See Chrome's IPC_MESSAGE_ID and
70  // IPC_MESSAGE_START macros.
71  optional uint32 message_line = 2;
72}
73