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

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

Issue 140763008: Add a UMA stat to track if the Browser blacklist is Set on the Renderer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add to test 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
« no previous file with comments | « no previous file | chrome_elf/blacklist/blacklist.cc » ('j') | content/renderer/DEPS » ('J')
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 namespace blacklist { 8 namespace blacklist {
9 9
10 // Max size of the DLL blacklist. 10 // Max size of the DLL blacklist.
(...skipping 29 matching lines...) Expand all
40 bool LeaveSetupBeacon(); 40 bool LeaveSetupBeacon();
41 41
42 // Looks for the beacon that LeaveSetupBeacon() creates and resets it to 42 // Looks for the beacon that LeaveSetupBeacon() creates and resets it to
43 // to show the setup was successful. 43 // to show the setup was successful.
44 // Returns true if the beacon was successfully set to BLACKLIST_ENABLED. 44 // Returns true if the beacon was successfully set to BLACKLIST_ENABLED.
45 bool ResetBeacon(); 45 bool ResetBeacon();
46 46
47 // Return the size of the current blacklist. 47 // Return the size of the current blacklist.
48 int BlacklistSize(); 48 int BlacklistSize();
49 49
50 // Returns if true if the blacklist has been initialized.
51 extern "C" bool IsBlacklistInitialized();
52
50 // Adds the given dll name to the blacklist. Returns true if the dll name is in 53 // Adds the given dll name to the blacklist. Returns true if the dll name is in
51 // the blacklist when this returns, false on error. Note that this will copy 54 // the blacklist when this returns, false on error. Note that this will copy
52 // |dll_name| and will leak it on exit if the string is not subsequently removed 55 // |dll_name| and will leak it on exit if the string is not subsequently removed
53 // using RemoveDllFromBlacklist. 56 // using RemoveDllFromBlacklist.
54 extern "C" bool AddDllToBlacklist(const wchar_t* dll_name); 57 extern "C" bool AddDllToBlacklist(const wchar_t* dll_name);
55 58
56 // Removes the given dll name from the blacklist. Returns true if it was 59 // Removes the given dll name from the blacklist. Returns true if it was
57 // removed, false on error. 60 // removed, false on error.
58 extern "C" bool RemoveDllFromBlacklist(const wchar_t* dll_name); 61 extern "C" bool RemoveDllFromBlacklist(const wchar_t* dll_name);
59 62
60 // Initializes the DLL blacklist in the current process. This should be called 63 // Initializes the DLL blacklist in the current process. This should be called
61 // before any undesirable DLLs might be loaded. If |force| is set to true, then 64 // before any undesirable DLLs might be loaded. If |force| is set to true, then
62 // initialization will take place even if a beacon is present. This is useful 65 // initialization will take place even if a beacon is present. This is useful
63 // for tests. 66 // for tests.
64 bool Initialize(bool force); 67 bool Initialize(bool force);
65 68
66 } // namespace blacklist 69 } // namespace blacklist
67 70
68 #endif // CHROME_ELF_BLACKLIST_BLACKLIST_H_ 71 #endif // CHROME_ELF_BLACKLIST_BLACKLIST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome_elf/blacklist/blacklist.cc » ('j') | content/renderer/DEPS » ('J')

Powered by Google App Engine
This is Rietveld 408576698