| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CHROME_ELF_BLACKLIST_BLACKLIST_H_ | 5 #ifndef CHROME_ELF_BLACKLIST_BLACKLIST_H_ |
| 6 #define CHROME_ELF_BLACKLIST_BLACKLIST_H_ | 6 #define CHROME_ELF_BLACKLIST_BLACKLIST_H_ |
| 7 | 7 |
| 8 #if defined(_WIN64) | 8 #if defined(_WIN64) |
| 9 #include "sandbox/win/src/sandbox_nt_types.h" | 9 #include "sandbox/win/src/sandbox_nt_types.h" |
| 10 #endif | 10 #endif |
| 11 | 11 |
| 12 #include <stddef.h> |
| 13 |
| 12 namespace blacklist { | 14 namespace blacklist { |
| 13 | 15 |
| 14 // Max size of the DLL blacklist. | 16 // Max size of the DLL blacklist. |
| 15 const size_t kTroublesomeDllsMaxCount = 64; | 17 const size_t kTroublesomeDllsMaxCount = 64; |
| 16 | 18 |
| 17 // The DLL blacklist. | 19 // The DLL blacklist. |
| 18 extern const wchar_t* g_troublesome_dlls[kTroublesomeDllsMaxCount]; | 20 extern const wchar_t* g_troublesome_dlls[kTroublesomeDllsMaxCount]; |
| 19 | 21 |
| 20 #if defined(_WIN64) | 22 #if defined(_WIN64) |
| 21 extern NtMapViewOfSectionFunction g_nt_map_view_of_section_func; | 23 extern NtMapViewOfSectionFunction g_nt_map_view_of_section_func; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 75 |
| 74 // Initializes the DLL blacklist in the current process. This should be called | 76 // Initializes the DLL blacklist in the current process. This should be called |
| 75 // before any undesirable DLLs might be loaded. If |force| is set to true, then | 77 // before any undesirable DLLs might be loaded. If |force| is set to true, then |
| 76 // initialization will take place even if a beacon is present. This is useful | 78 // initialization will take place even if a beacon is present. This is useful |
| 77 // for tests. | 79 // for tests. |
| 78 bool Initialize(bool force); | 80 bool Initialize(bool force); |
| 79 | 81 |
| 80 } // namespace blacklist | 82 } // namespace blacklist |
| 81 | 83 |
| 82 #endif // CHROME_ELF_BLACKLIST_BLACKLIST_H_ | 84 #endif // CHROME_ELF_BLACKLIST_BLACKLIST_H_ |
| OLD | NEW |