OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include <algorithm> | 5 #include <algorithm> |
6 #include <iostream> | 6 #include <iostream> |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 // Exclude test and other non-browser files from consideration. Do not | 47 // Exclude test and other non-browser files from consideration. Do not |
48 // include message files used inside the actual chrome browser in this list. | 48 // include message files used inside the actual chrome browser in this list. |
49 exemptions.push_back(TestMsgStart); | 49 exemptions.push_back(TestMsgStart); |
50 exemptions.push_back(FirefoxImporterUnittestMsgStart); | 50 exemptions.push_back(FirefoxImporterUnittestMsgStart); |
51 exemptions.push_back(ShellMsgStart); | 51 exemptions.push_back(ShellMsgStart); |
52 exemptions.push_back(LayoutTestMsgStart); | 52 exemptions.push_back(LayoutTestMsgStart); |
53 exemptions.push_back(MetroViewerMsgStart); | 53 exemptions.push_back(MetroViewerMsgStart); |
54 exemptions.push_back(CCMsgStart); // Nothing but param traits. | 54 exemptions.push_back(CCMsgStart); // Nothing but param traits. |
55 exemptions.push_back(CldDataProviderMsgStart); // Conditional build. | 55 exemptions.push_back(CldDataProviderMsgStart); // Conditional build. |
| 56 |
| 57 // Sent from browser to renderer. |
| 58 exemptions.push_back(WebCacheMsgStart); |
| 59 |
| 60 #if defined(DISABLE_NACL) |
| 61 exemptions.push_back(NaClMsgStart); |
| 62 #endif // defined(DISABLE_NACL) |
| 63 |
56 #if !defined(OS_ANDROID) | 64 #if !defined(OS_ANDROID) |
57 exemptions.push_back(JavaBridgeMsgStart); | 65 exemptions.push_back(JavaBridgeMsgStart); |
58 exemptions.push_back(MediaPlayerMsgStart); | 66 exemptions.push_back(MediaPlayerMsgStart); |
59 exemptions.push_back(EncryptedMediaMsgStart); | 67 exemptions.push_back(EncryptedMediaMsgStart); |
60 exemptions.push_back(GinJavaBridgeMsgStart); | 68 exemptions.push_back(GinJavaBridgeMsgStart); |
61 exemptions.push_back(AndroidWebViewMsgStart); | 69 exemptions.push_back(AndroidWebViewMsgStart); |
62 #endif // !defined(OS_ANDROID) | 70 #endif // !defined(OS_ANDROID) |
| 71 |
| 72 #if !defined(OS_POSIX) |
| 73 exemptions.push_back(CastMediaMsgStart); // FIXME: Add support for types. |
| 74 #endif // !defined(OS_POSIX) |
| 75 |
63 #if !defined(USE_OZONE) | 76 #if !defined(USE_OZONE) |
64 exemptions.push_back(OzoneGpuMsgStart); | 77 exemptions.push_back(OzoneGpuMsgStart); |
65 #endif // !defined(USE_OZONE) | 78 #endif // !defined(USE_OZONE) |
66 | 79 |
67 for (size_t i = 0; i < MSGTABLE_SIZE; ++i) { | 80 for (size_t i = 0; i < MSGTABLE_SIZE; ++i) { |
68 int class_id = IPC_MESSAGE_ID_CLASS(msgtable[i].id); | 81 int class_id = IPC_MESSAGE_ID_CLASS(msgtable[i].id); |
69 file_name = msgtable[i].file; | 82 file_name = msgtable[i].file; |
70 if (class_id >= LastIPCMsgStart) { | 83 if (class_id >= LastIPCMsgStart) { |
71 std::cout << "Invalid LastIPCMsgStart setting\n"; | 84 std::cout << "Invalid LastIPCMsgStart setting\n"; |
72 result = false; | 85 result = false; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 | 184 |
172 std::sort(msgtable, msgtable + MSGTABLE_SIZE); | 185 std::sort(msgtable, msgtable + MSGTABLE_SIZE); |
173 | 186 |
174 if (!skip_check && check_msgtable() == false) | 187 if (!skip_check && check_msgtable() == false) |
175 return 1; | 188 return 1; |
176 | 189 |
177 dump_msgtable(show_args, show_ids, show_comma, filter); | 190 dump_msgtable(show_args, show_ids, show_comma, filter); |
178 return 0; | 191 return 0; |
179 } | 192 } |
180 | 193 |
OLD | NEW |