| 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);
|
|
|
|
|