Chromium Code Reviews| Index: extensions/browser/event_router.h |
| diff --git a/extensions/browser/event_router.h b/extensions/browser/event_router.h |
| index b9af93aef3e402644505b597e888e5a1ff602198..8164d91523b901d56624a39e679a2ee8908e17dc 100644 |
| --- a/extensions/browser/event_router.h |
| +++ b/extensions/browser/event_router.h |
| @@ -22,6 +22,7 @@ |
| #include "content/public/browser/notification_registrar.h" |
| #include "content/public/browser/render_process_host_observer.h" |
| #include "extensions/browser/event_listener_map.h" |
| +#include "extensions/browser/extension_event_histogram_value.h" |
| #include "extensions/browser/extension_registry_observer.h" |
| #include "extensions/common/event_filtering_info.h" |
| #include "ipc/ipc_sender.h" |
| @@ -335,6 +336,11 @@ struct Event { |
| const Extension*, |
| base::ListValue*)> WillDispatchCallback; |
| + // The identifier for the event, for histograms. In most cases this |
|
not at google - send to devlin
2015/06/22 23:42:11
Look here.
Devlin
2015/06/23 17:20:43
When will an event generate its own name? If it w
not at google - send to devlin
2015/06/23 17:49:09
What do you mean "generate its own name"? I agree
Devlin
2015/06/23 17:55:56
By "generate its own name", I mean whatever you me
not at google - send to devlin
2015/06/23 17:59:01
APIs which have their schemas compiled will get ev
Devlin
2015/06/23 18:07:38
Ah, gotcha. So in that case, it would be fairly e
|
| + // correlates 1:1 with |event_name|, in some cases events will generate |
| + // their own names, but they cannot generate their own identifier. |
| + events::HistogramValue histogram_value; |
| + |
| // The event to dispatch. |
| std::string event_name; |
| @@ -366,14 +372,17 @@ struct Event { |
| // this event to be dispatched to non-extension processes, like WebUI. |
| WillDispatchCallback will_dispatch_callback; |
| - Event(const std::string& event_name, |
| + Event(events::HistogramValue histogram_value, |
| + const std::string& event_name, |
| scoped_ptr<base::ListValue> event_args); |
| - Event(const std::string& event_name, |
| + Event(events::HistogramValue histogram_value, |
| + const std::string& event_name, |
| scoped_ptr<base::ListValue> event_args, |
| content::BrowserContext* restrict_to_browser_context); |
| - Event(const std::string& event_name, |
| + Event(events::HistogramValue histogram_value, |
| + const std::string& event_name, |
| scoped_ptr<base::ListValue> event_args, |
| content::BrowserContext* restrict_to_browser_context, |
| const GURL& event_url, |