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

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

Issue 163633005: Revert 250828 "Add a UMA stat to track if the Browser blacklist ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « trunk/src/chrome/unit_tests.isolate ('k') | trunk/src/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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 bool LeaveSetupBeacon(); 54 bool LeaveSetupBeacon();
55 55
56 // Looks for the beacon that LeaveSetupBeacon() creates and resets it to 56 // Looks for the beacon that LeaveSetupBeacon() creates and resets it to
57 // to show the setup was successful. 57 // to show the setup was successful.
58 // Returns true if the beacon was successfully set to BLACKLIST_ENABLED. 58 // Returns true if the beacon was successfully set to BLACKLIST_ENABLED.
59 bool ResetBeacon(); 59 bool ResetBeacon();
60 60
61 // Return the size of the current blacklist. 61 // Return the size of the current blacklist.
62 int BlacklistSize(); 62 int BlacklistSize();
63 63
64 // Returns if true if the blacklist has been initialized.
65 extern "C" bool IsBlacklistInitialized();
66
67 // Adds the given dll name to the blacklist. Returns true if the dll name is in 64 // Adds the given dll name to the blacklist. Returns true if the dll name is in
68 // the blacklist when this returns, false on error. Note that this will copy 65 // the blacklist when this returns, false on error. Note that this will copy
69 // |dll_name| and will leak it on exit if the string is not subsequently removed 66 // |dll_name| and will leak it on exit if the string is not subsequently removed
70 // using RemoveDllFromBlacklist. 67 // using RemoveDllFromBlacklist.
71 extern "C" bool AddDllToBlacklist(const wchar_t* dll_name); 68 extern "C" bool AddDllToBlacklist(const wchar_t* dll_name);
72 69
73 // Removes the given dll name from the blacklist. Returns true if it was 70 // Removes the given dll name from the blacklist. Returns true if it was
74 // removed, false on error. 71 // removed, false on error.
75 extern "C" bool RemoveDllFromBlacklist(const wchar_t* dll_name); 72 extern "C" bool RemoveDllFromBlacklist(const wchar_t* dll_name);
76 73
77 // Initializes the DLL blacklist in the current process. This should be called 74 // Initializes the DLL blacklist in the current process. This should be called
78 // before any undesirable DLLs might be loaded. If |force| is set to true, then 75 // before any undesirable DLLs might be loaded. If |force| is set to true, then
79 // initialization will take place even if a beacon is present. This is useful 76 // initialization will take place even if a beacon is present. This is useful
80 // for tests. 77 // for tests.
81 bool Initialize(bool force); 78 bool Initialize(bool force);
82 79
83 } // namespace blacklist 80 } // namespace blacklist
84 81
85 #endif // CHROME_ELF_BLACKLIST_BLACKLIST_H_ 82 #endif // CHROME_ELF_BLACKLIST_BLACKLIST_H_
OLDNEW
« no previous file with comments | « trunk/src/chrome/unit_tests.isolate ('k') | trunk/src/chrome_elf/blacklist/blacklist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698