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

Unified Diff: chrome/browser/extensions/extension_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: 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_browser_event_router.h
diff --git a/chrome/browser/extensions/extension_browser_event_router.h b/chrome/browser/extensions/extension_browser_event_router.h
index 4cb53918459556a54e725aac3e35f502d329234d..7cb26f749dbae229e591d7600f836975f648ac5f 100644
--- a/chrome/browser/extensions/extension_browser_event_router.h
+++ b/chrome/browser/extensions/extension_browser_event_router.h
@@ -126,17 +126,17 @@ class ExtensionBrowserEventRouter : 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);
+ base::ListValue* arguments);
void DispatchEventToExtension(Profile* profile,
const std::string& extension_id,
const char* event_name,
- const std::string& json_args);
+ base::ListValue* event_args);
void DispatchEventsAcrossIncognito(Profile* profile,
const char* event_name,
- const std::string& json_args,
- const std::string& cross_incognito_args);
+ base::ListValue* event_args,
+ base::ListValue* cross_incognito_args);
void DispatchEventWithTab(Profile* profile,
const std::string& extension_id,

Powered by Google App Engine
This is Rietveld 408576698