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

Unified Diff: extensions/browser/event_router.h

Issue 404883002: Allow extension APIs to be called from WebUI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android compile Created 6 years, 5 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 | « extensions/browser/api/test/test_api.cc ('k') | extensions/browser/event_router.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/event_router.h
diff --git a/extensions/browser/event_router.h b/extensions/browser/event_router.h
index 79a0c944d4eb06ddb3e43aebab6cb913e2d7f10f..a69d0422218d9be241a3b69b1676dc065a3bd710 100644
--- a/extensions/browser/event_router.h
+++ b/extensions/browser/event_router.h
@@ -322,6 +322,9 @@ struct Event {
// allowing the caller to provide different arguments depending on the
// extension and profile. This is guaranteed to be called synchronously with
// DispatchEvent, so callers don't need to worry about lifetime.
+ //
+ // NOTE: the Extension argument to this may be NULL because it's possible for
+ // this event to be dispatched to non-extension processes, like WebUI.
WillDispatchCallback will_dispatch_callback;
// If true, this event will always be dispatched to ephemeral apps, regardless
« no previous file with comments | « extensions/browser/api/test/test_api.cc ('k') | extensions/browser/event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698