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

Unified Diff: chrome/browser/extensions/extension_event_router_forwarder.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_event_router_forwarder.h
diff --git a/chrome/browser/extensions/extension_event_router_forwarder.h b/chrome/browser/extensions/extension_event_router_forwarder.h
index 390c8578a7844fc761546770e2f025c31453d556..066dcc475d8bc05cd15001adb8908b53f331d7e7 100644
--- a/chrome/browser/extensions/extension_event_router_forwarder.h
+++ b/chrome/browser/extensions/extension_event_router_forwarder.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
+#include "base/values.h"
#include "chrome/browser/profiles/profile.h"
#include "content/public/browser/browser_thread.h"
@@ -34,7 +35,7 @@ class ExtensionEventRouterForwarder
// on all (original) profiles' ExtensionEventRouters.
// May be called on any thread.
void BroadcastEventToRenderers(const std::string& event_name,
- const std::string& event_args,
+ base::ListValue* event_args,
const GURL& event_url);
// Calls
@@ -44,7 +45,7 @@ class ExtensionEventRouterForwarder
// May be called on any thread.
void BroadcastEventToExtension(const std::string& extension_id,
const std::string& event_name,
- const std::string& event_args,
+ base::ListValue* event_args,
const GURL& event_url);
// Calls
@@ -52,7 +53,7 @@ class ExtensionEventRouterForwarder
// use_profile_to_restrict_events ? profile : NULL, event_url)
// on |profile|'s ExtensionEventRouter. May be called on any thread.
void DispatchEventToRenderers(const std::string& event_name,
- const std::string& event_args,
+ base::ListValue* event_args,
void* profile,
bool use_profile_to_restrict_events,
const GURL& event_url);
@@ -63,7 +64,7 @@ class ExtensionEventRouterForwarder
// on |profile|'s ExtensionEventRouter. May be called on any thread.
void DispatchEventToExtension(const std::string& extension_id,
const std::string& event_name,
- const std::string& event_args,
+ base::ListValue* event_args,
void* profile,
bool use_profile_to_restrict_events,
const GURL& event_url);
@@ -76,7 +77,7 @@ class ExtensionEventRouterForwarder
// Virtual for testing.
virtual void HandleEvent(const std::string& extension_id,
const std::string& event_name,
- const std::string& event_args,
+ base::ListValue* event_args,
void* profile,
bool use_profile_to_restrict_events,
const GURL& event_url);
@@ -88,7 +89,7 @@ class ExtensionEventRouterForwarder
virtual void CallExtensionEventRouter(Profile* profile,
const std::string& extension_id,
const std::string& event_name,
- const std::string& event_args,
+ base::ListValue* event_args,
Profile* restrict_to_profile,
const GURL& event_url);

Powered by Google App Engine
This is Rietveld 408576698