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

Unified Diff: chrome_elf/blacklist/blacklist.h

Issue 174013007: Add UMA stats to record when DLLs are successfully blocked in the Browser. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
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 side-by-side diff with in-line comments
Download patch
Index: chrome_elf/blacklist/blacklist.h
diff --git a/chrome_elf/blacklist/blacklist.h b/chrome_elf/blacklist/blacklist.h
index 2e21f20793e296cfff766cd3728cf6238f9fe154..d81b1f17667cd57c3a7c24ea94c63fc0f18be68e 100644
--- a/chrome_elf/blacklist/blacklist.h
+++ b/chrome_elf/blacklist/blacklist.h
@@ -74,6 +74,14 @@ extern "C" bool AddDllToBlacklist(const wchar_t* dll_name);
// removed, false on error.
extern "C" bool RemoveDllFromBlacklist(const wchar_t* dll_name);
+// Returns a list of all the dlls that have been successfully blocked by the
+// blacklist via blocked_dlls, if there is enough space (according to |size|).
+// |size| will always be modify to be the number of dlls that were blocked.
robertshield 2014/02/24 15:24:05 be modified
csharp 2014/02/24 21:37:16 Done.
+extern "C" void SuccessfullyBlocked(const wchar_t** blocked_dlls, int* size);
robertshield 2014/02/24 15:24:05 document the memory management specifics here, i.e
csharp 2014/02/24 21:37:16 Done.
+
+// Record that the dll at the given index was blocked.
+void BlockedDll(int blocked_index);
+
// Initializes the DLL blacklist in the current process. This should be called
// before any undesirable DLLs might be loaded. If |force| is set to true, then
// initialization will take place even if a beacon is present. This is useful

Powered by Google App Engine
This is Rietveld 408576698