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

Unified Diff: chrome/browser/conflicts/module_database_win.h

Issue 2721503003: Add ModuleInspector (Closed)
Patch Set: merge Created 3 years, 9 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
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/conflicts/module_database_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/conflicts/module_database_win.h
diff --git a/chrome/browser/conflicts/module_database_win.h b/chrome/browser/conflicts/module_database_win.h
index ef7f4e3348cc72e5faef64b53e411b20472fdde3..6d75733725cad5f24eb1c237a415d3489fac2de6 100644
--- a/chrome/browser/conflicts/module_database_win.h
+++ b/chrome/browser/conflicts/module_database_win.h
@@ -15,6 +15,7 @@
#include "base/memory/weak_ptr.h"
#include "base/sequenced_task_runner.h"
#include "chrome/browser/conflicts/module_info_win.h"
+#include "chrome/browser/conflicts/module_inspector_win.h"
#include "content/public/common/process_type.h"
// A class that keeps track of all modules loaded across Chrome processes.
@@ -142,12 +143,20 @@ class ModuleDatabase {
// Deletes a process info entry.
void DeleteProcessInfo(uint32_t process_id, uint64_t creation_time);
+ // Callback for ModuleInspector.
+ void OnModuleInspected(
+ const ModuleInfoKey& module_key,
+ std::unique_ptr<ModuleInspectionResult> inspection_result);
+
// The task runner to which this object is bound.
scoped_refptr<base::SequencedTaskRunner> task_runner_;
// A map of all known modules.
ModuleMap modules_;
+ // Inspects new modules on a blocking task runner.
+ ModuleInspector module_inspector_;
+
// A map of all known running processes, and modules loaded/unloaded in
// them.
ProcessMap processes_;
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/conflicts/module_database_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698