diff options
Diffstat (limited to 'chrome/browser/automation')
-rw-r--r-- | chrome/browser/automation/automation_provider.cc | 2 | ||||
-rw-r--r-- | chrome/browser/automation/extension_port_container.cc | 5 | ||||
-rw-r--r-- | chrome/browser/automation/extension_port_container.h | 6 |
3 files changed, 8 insertions, 5 deletions
diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc index 3ef5750..ad4dc9c 100644 --- a/chrome/browser/automation/automation_provider.cc +++ b/chrome/browser/automation/automation_provider.cc @@ -2203,7 +2203,7 @@ bool AutomationProvider::InterceptBrowserEventMessageFromExternalHost( if (profile()->GetExtensionMessageService()) { profile()->GetExtensionMessageService()->DispatchEventToRenderers( - event_name, json_args, profile()->IsOffTheRecord()); + event_name, json_args, profile()->IsOffTheRecord(), GURL()); } return true; diff --git a/chrome/browser/automation/extension_port_container.cc b/chrome/browser/automation/extension_port_container.cc index e167e7e..e93f42c 100644 --- a/chrome/browser/automation/extension_port_container.cc +++ b/chrome/browser/automation/extension_port_container.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 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. @@ -114,7 +114,8 @@ bool ExtensionPortContainer::Send(IPC::Message *message) { void ExtensionPortContainer::OnExtensionMessageInvoke( const std::string& function_name, const ListValue& args, - bool requires_incognito_access) { + bool requires_incognito_access, + const GURL& event_url) { if (function_name == ExtensionMessageService::kDispatchOnMessage) { DCHECK_EQ(args.GetSize(), 2u); diff --git a/chrome/browser/automation/extension_port_container.h b/chrome/browser/automation/extension_port_container.h index b74709d..8fd8299 100644 --- a/chrome/browser/automation/extension_port_container.h +++ b/chrome/browser/automation/extension_port_container.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 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. @@ -13,6 +13,7 @@ class AutomationProvider; class ExtensionMessageService; +class GURL; class ListValue; class MessageLoop; class RenderViewHost; @@ -64,7 +65,8 @@ class ExtensionPortContainer : public IPC::Message::Sender { void OnExtensionMessageInvoke(const std::string& function_name, const ListValue& args, - bool requires_incognito_access); + bool requires_incognito_access, + const GURL& event_url); void OnExtensionHandleMessage(const std::string& message, int source_port_id); void OnExtensionPortDisconnected(int source_port_id); |