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

Unified Diff: headless/public/internal/message_dispatcher.h

Issue 1907533002: headless: Implement DevTools events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add parameters to all events Created 4 years, 8 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 | « headless/lib/headless_devtools_client_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/public/internal/message_dispatcher.h
diff --git a/headless/public/internal/message_dispatcher.h b/headless/public/internal/message_dispatcher.h
index 32352f4804222f92ff6664e40578ee997e340fb7..ea939782b84df8766424a7fb62e2e7f71258bebf 100644
--- a/headless/public/internal/message_dispatcher.h
+++ b/headless/public/internal/message_dispatcher.h
@@ -23,6 +23,10 @@ class MessageDispatcher {
base::Callback<void(const base::Value&)> callback) = 0;
virtual void SendMessage(const char* method,
base::Callback<void()> callback) = 0;
+
+ virtual void RegisterEventHandler(
+ const char* method,
+ base::Callback<void(const base::Value&)> callback) = 0;
};
} // namespace internal
« no previous file with comments | « headless/lib/headless_devtools_client_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698