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

Unified Diff: chrome/browser/extensions/browser_event_router.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/browser_event_router.h
diff --git a/chrome/browser/extensions/browser_event_router.h b/chrome/browser/extensions/browser_event_router.h
index 3a461507a0d97f2fe58c2b2916e288b1743e3760..c9edaee7a6e39ccebfeda7dc6402b9b58b5ed058 100644
--- a/chrome/browser/extensions/browser_event_router.h
+++ b/chrome/browser/extensions/browser_event_router.h
@@ -107,19 +107,20 @@ class BrowserEventRouter : public TabStripModelObserver,
// so we avoid duplication by dropping events destined for other profiles.
void DispatchEvent(Profile* profile,
const char* event_name,
- const std::string& json_args,
+ scoped_ptr<base::ListValue> args,
EventRouter::UserGestureState user_gesture);
void DispatchEventToExtension(Profile* profile,
const std::string& extension_id,
const char* event_name,
- const std::string& json_args,
+ scoped_ptr<base::ListValue> event_args,
EventRouter::UserGestureState user_gesture);
- void DispatchEventsAcrossIncognito(Profile* profile,
- const char* event_name,
- const std::string& json_args,
- const std::string& cross_incognito_args);
+ void DispatchEventsAcrossIncognito(
+ Profile* profile,
+ const char* event_name,
+ scoped_ptr<base::ListValue> event_args,
+ scoped_ptr<base::ListValue> cross_incognito_args);
void DispatchEventWithTab(Profile* profile,
const std::string& extension_id,

Powered by Google App Engine
This is Rietveld 408576698