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

Unified Diff: chrome/common/conflicts/module_event_win.mojom

Issue 2473783005: [Win] Create ModuleWatcher. (Closed)
Patch Set: Refactor threading and observer model. Created 4 years, 1 month 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/common/conflicts/module_event_win.mojom
diff --git a/chrome/common/conflicts/module_event_win.mojom b/chrome/common/conflicts/module_event_win.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..d67c568aa874913cf8b287cd9ccf38c67e53007b
--- /dev/null
+++ b/chrome/common/conflicts/module_event_win.mojom
@@ -0,0 +1,28 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module conflicts.mojom;
+
+// The types of module events that can occur.
+enum ModuleEventType {
+ // A module was already loaded, but its presence is being observed.
+ MODULE_ALREADY_LOADED,
+ // A module is in the process of being loaded.
+ MODULE_LOADED,
+ // A module is in the process of being unloaded.
+ MODULE_UNLOADED,
+};
+
+// A notification about a module being loaded or unloaded.
+struct ModuleEvent {
+ // The type of event.
+ ModuleEventType event_type;
+ // The full path to the module being loaded or unloaded.
+ string module_path;
+ // The load address of the module, in an integer form. This is 64-bit so that
+ // it works on both platforms.
+ uint64 load_address;
+ // The size of the module in memory, in bytes.
+ uint32 size;
+};

Powered by Google App Engine
This is Rietveld 408576698