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 "chrome/utility/chrome_content_utility_ipc_whitelist.h" | 5 #include "chrome/utility/chrome_content_utility_ipc_whitelist.h" |
6 | 6 |
| 7 #include "base/macros.h" |
| 8 #include "build/build_config.h" |
| 9 |
7 #if defined(ENABLE_EXTENSIONS) | 10 #if defined(ENABLE_EXTENSIONS) |
8 #include "chrome/common/extensions/chrome_utility_extensions_messages.h" | 11 #include "chrome/common/extensions/chrome_utility_extensions_messages.h" |
9 #endif | 12 #endif |
10 | 13 |
11 #if defined(ENABLE_EXTENSIONS) | 14 #if defined(ENABLE_EXTENSIONS) |
12 const uint32 kMessageWhitelist[] = { | 15 const uint32_t kMessageWhitelist[] = { |
13 #if defined(OS_WIN) | 16 #if defined(OS_WIN) |
14 ChromeUtilityHostMsg_GetWiFiCredentials::ID, | 17 ChromeUtilityHostMsg_GetWiFiCredentials::ID, |
15 #endif // defined(OS_WIN) | 18 #endif // defined(OS_WIN) |
16 ChromeUtilityMsg_ImageWriter_Cancel::ID, | 19 ChromeUtilityMsg_ImageWriter_Cancel::ID, |
17 ChromeUtilityMsg_ImageWriter_Write::ID, | 20 ChromeUtilityMsg_ImageWriter_Write::ID, |
18 ChromeUtilityMsg_ImageWriter_Verify::ID | 21 ChromeUtilityMsg_ImageWriter_Verify::ID}; |
19 }; | |
20 const size_t kMessageWhitelistSize = arraysize(kMessageWhitelist); | 22 const size_t kMessageWhitelistSize = arraysize(kMessageWhitelist); |
21 #else | 23 #else |
22 // Note: Zero-size arrays are not valid C++. | 24 // Note: Zero-size arrays are not valid C++. |
23 const uint32 kMessageWhitelist[] = { 0 }; | 25 const uint32_t kMessageWhitelist[] = {0}; |
24 const size_t kMessageWhitelistSize = 0; | 26 const size_t kMessageWhitelistSize = 0; |
25 #endif // defined(ENABLE_EXTENSIONS) | 27 #endif // defined(ENABLE_EXTENSIONS) |
OLD | NEW |