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