Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(414)

Side by Side Diff: chrome_elf/blacklist/blacklist.h

Issue 2163803003: [chrome_elf] Removing blacklist finch for dynamic dll changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review fixes. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/installer/setup/uninstall.cc ('k') | chrome_elf/blacklist/blacklist.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 extern "C" bool RemoveDllFromBlacklist(const wchar_t* dll_name); 59 extern "C" bool RemoveDllFromBlacklist(const wchar_t* dll_name);
60 60
61 // Returns a list of all the dlls that have been successfully blocked by the 61 // Returns a list of all the dlls that have been successfully blocked by the
62 // blacklist via blocked_dlls, if there is enough space (according to |size|). 62 // blacklist via blocked_dlls, if there is enough space (according to |size|).
63 // |size| will always be modified to be the number of dlls that were blocked. 63 // |size| will always be modified to be the number of dlls that were blocked.
64 // The caller doesn't own the strings and isn't expected to free them. These 64 // The caller doesn't own the strings and isn't expected to free them. These
65 // strings won't be hanging unless RemoveDllFromBlacklist is called, but it 65 // strings won't be hanging unless RemoveDllFromBlacklist is called, but it
66 // is only exposed in tests (and should stay that way). 66 // is only exposed in tests (and should stay that way).
67 extern "C" void SuccessfullyBlocked(const wchar_t** blocked_dlls, int* size); 67 extern "C" void SuccessfullyBlocked(const wchar_t** blocked_dlls, int* size);
68 68
69 // Add the dlls, originally passed in through finch, from the registry to the
70 // blacklist so that they will be blocked identically to those hard coded in.
71 extern "C" void AddDllsFromRegistryToBlacklist();
72
73 // Record that the dll at the given index was blocked. 69 // Record that the dll at the given index was blocked.
74 extern "C" void BlockedDll(size_t blocked_index); 70 extern "C" void BlockedDll(size_t blocked_index);
75 71
76 // Initializes the DLL blacklist in the current process. This should be called 72 // Initializes the DLL blacklist in the current process. This should be called
77 // before any undesirable DLLs might be loaded. If |force| is set to true, then 73 // before any undesirable DLLs might be loaded. If |force| is set to true, then
78 // initialization will take place even if a beacon is present. This is useful 74 // initialization will take place even if a beacon is present. This is useful
79 // for tests. 75 // for tests.
80 bool Initialize(bool force); 76 bool Initialize(bool force);
81 77
82 } // namespace blacklist 78 } // namespace blacklist
83 79
84 #endif // CHROME_ELF_BLACKLIST_BLACKLIST_H_ 80 #endif // CHROME_ELF_BLACKLIST_BLACKLIST_H_
OLDNEW
« no previous file with comments | « chrome/installer/setup/uninstall.cc ('k') | chrome_elf/blacklist/blacklist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698