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

Unified Diff: chrome/browser/extensions/extension_processes_api.h

Issue 10694085: Refactor extension event distribution to use Values instead of JSON strings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix. Created 8 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
Index: chrome/browser/extensions/extension_processes_api.h
diff --git a/chrome/browser/extensions/extension_processes_api.h b/chrome/browser/extensions/extension_processes_api.h
index 4e326963d73f3f161fac5ac98bbc1be014c47a2b..966cfa2c28fa2022d214d31521e4c497454b978b 100644
--- a/chrome/browser/extensions/extension_processes_api.h
+++ b/chrome/browser/extensions/extension_processes_api.h
@@ -15,6 +15,10 @@
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_widget_host.h"
+namespace base {
+class ListValue;
+}
+
// Observes the Task Manager and routes the notifications as events to the
// extension system.
class ExtensionProcessesEventRouter : public TaskManagerModelObserver,
@@ -64,11 +68,11 @@ class ExtensionProcessesEventRouter : public TaskManagerModelObserver,
content::RenderProcessHost* rph,
content::RenderProcessHost::RendererClosedDetails* details);
- void NotifyProfiles(const char* event_name, std::string json_args);
+ void NotifyProfiles(const char* event_name, base::ListValue* event_args);
void DispatchEvent(Profile* profile,
const char* event_name,
- const std::string& json_args);
+ base::ListValue* event_args);
// Determines whether there is a registered listener for the specified event.
// It helps to avoid collecing data if no one is interested in it.

Powered by Google App Engine
This is Rietveld 408576698