| 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 | |
| 64 #if !defined(OS_ANDROID) | 56 #if !defined(OS_ANDROID) |
| 65 exemptions.push_back(JavaBridgeMsgStart); | 57 exemptions.push_back(JavaBridgeMsgStart); |
| 66 exemptions.push_back(MediaPlayerMsgStart); | 58 exemptions.push_back(MediaPlayerMsgStart); |
| 67 exemptions.push_back(EncryptedMediaMsgStart); | 59 exemptions.push_back(EncryptedMediaMsgStart); |
| 68 exemptions.push_back(GinJavaBridgeMsgStart); | 60 exemptions.push_back(GinJavaBridgeMsgStart); |
| 69 exemptions.push_back(AndroidWebViewMsgStart); | 61 exemptions.push_back(AndroidWebViewMsgStart); |
| 70 #endif // !defined(OS_ANDROID) | 62 #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 | |
| 76 #if !defined(USE_OZONE) | 63 #if !defined(USE_OZONE) |
| 77 exemptions.push_back(OzoneGpuMsgStart); | 64 exemptions.push_back(OzoneGpuMsgStart); |
| 78 #endif // !defined(USE_OZONE) | 65 #endif // !defined(USE_OZONE) |
| 79 | 66 |
| 80 for (size_t i = 0; i < MSGTABLE_SIZE; ++i) { | 67 for (size_t i = 0; i < MSGTABLE_SIZE; ++i) { |
| 81 int class_id = IPC_MESSAGE_ID_CLASS(msgtable[i].id); | 68 int class_id = IPC_MESSAGE_ID_CLASS(msgtable[i].id); |
| 82 file_name = msgtable[i].file; | 69 file_name = msgtable[i].file; |
| 83 if (class_id >= LastIPCMsgStart) { | 70 if (class_id >= LastIPCMsgStart) { |
| 84 std::cout << "Invalid LastIPCMsgStart setting\n"; | 71 std::cout << "Invalid LastIPCMsgStart setting\n"; |
| 85 result = false; | 72 result = false; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 | 171 |
| 185 std::sort(msgtable, msgtable + MSGTABLE_SIZE); | 172 std::sort(msgtable, msgtable + MSGTABLE_SIZE); |
| 186 | 173 |
| 187 if (!skip_check && check_msgtable() == false) | 174 if (!skip_check && check_msgtable() == false) |
| 188 return 1; | 175 return 1; |
| 189 | 176 |
| 190 dump_msgtable(show_args, show_ids, show_comma, filter); | 177 dump_msgtable(show_args, show_ids, show_comma, filter); |
| 191 return 0; | 178 return 0; |
| 192 } | 179 } |
| 193 | 180 |
| OLD | NEW |