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

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: Fixing memory leak in a test. Created 8 years, 4 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 125221090b509b4b9a714459604101b85422d2d8..20c0973c63a7480b446aa53cd2ce5ce9c3598882 100644
--- a/chrome/browser/extensions/extension_processes_api.h
+++ b/chrome/browser/extensions/extension_processes_api.h
@@ -14,6 +14,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,
@@ -63,11 +67,12 @@ 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,
+ scoped_ptr<base::ListValue> event_args);
void DispatchEvent(Profile* profile,
const char* event_name,
- const std::string& json_args);
+ scoped_ptr<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.
« no previous file with comments | « chrome/browser/extensions/extension_preference_helpers.cc ('k') | chrome/browser/extensions/extension_processes_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698