| 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 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 // Record that the dll at the given index was blocked. | 63 // Record that the dll at the given index was blocked. |
| 64 void BlockedDll(size_t blocked_index); | 64 void BlockedDll(size_t blocked_index); |
| 65 | 65 |
| 66 // Initializes the DLL blacklist in the current process. This should be called | 66 // Initializes the DLL blacklist in the current process. This should be called |
| 67 // before any undesirable DLLs might be loaded. If |force| is set to true, then | 67 // before any undesirable DLLs might be loaded. If |force| is set to true, then |
| 68 // initialization will take place even if a beacon is present. This is useful | 68 // initialization will take place even if a beacon is present. This is useful |
| 69 // for tests. | 69 // for tests. |
| 70 bool Initialize(bool force); | 70 bool Initialize(bool force); |
| 71 | 71 |
| 72 // Add the dlls, originally passed in through finch, from the registry to the |
| 73 // blacklist so that they will be blocked identically to those hard coded in. |
| 74 void AddDllsFromRegistryToBlacklist(); |
| 75 |
| 72 } // namespace blacklist | 76 } // namespace blacklist |
| 73 | 77 |
| 74 #endif // CHROME_ELF_BLACKLIST_BLACKLIST_H_ | 78 #endif // CHROME_ELF_BLACKLIST_BLACKLIST_H_ |
| OLD | NEW |