diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-13 14:43:02 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-13 14:43:02 +0000 |
commit | 173e5e807c62bb789ad46598e46367e019180568 (patch) | |
tree | f7d90e64a28b55e2e8417a2ab8ad997392c5836a /chrome/browser/debugger | |
parent | c0a9f12a2dbb98ff17d9fd02b250c5deeeed9a85 (diff) | |
download | chromium_src-173e5e807c62bb789ad46598e46367e019180568.zip chromium_src-173e5e807c62bb789ad46598e46367e019180568.tar.gz chromium_src-173e5e807c62bb789ad46598e46367e019180568.tar.bz2 |
Reland 44348 Add support for restricting broadcasting events to extensions based on host permissions
BUG=38398
TEST=none
TBR=jochen@chromium.org
Review URL: http://codereview.chromium.org/1642005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44351 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/debugger')
-rw-r--r-- | chrome/browser/debugger/extension_ports_remote_service.cc | 5 | ||||
-rw-r--r-- | chrome/browser/debugger/extension_ports_remote_service.h | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/chrome/browser/debugger/extension_ports_remote_service.cc b/chrome/browser/debugger/extension_ports_remote_service.cc index c4380d5..d2a05ea 100644 --- a/chrome/browser/debugger/extension_ports_remote_service.cc +++ b/chrome/browser/debugger/extension_ports_remote_service.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. @@ -243,7 +243,8 @@ bool ExtensionPortsRemoteService::Send(IPC::Message *message) { void ExtensionPortsRemoteService::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); std::string message; diff --git a/chrome/browser/debugger/extension_ports_remote_service.h b/chrome/browser/debugger/extension_ports_remote_service.h index 3a9e53b..6067f44 100644 --- a/chrome/browser/debugger/extension_ports_remote_service.h +++ b/chrome/browser/debugger/extension_ports_remote_service.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. @@ -21,6 +21,7 @@ class DevToolsProtocolHandler; class DevToolsRemoteMessage; class DictionaryValue; +class GURL; class ListValue; class Value; @@ -75,7 +76,8 @@ class ExtensionPortsRemoteService : public DevToolsRemoteListener, // Handles a message from the ExtensionMessageService. void OnExtensionMessageInvoke(const std::string& function_name, const ListValue& args, - bool requires_incognito_access); + bool requires_incognito_access, + const GURL& event_url); // Handles a message sent from an extension through the // ExtensionMessageService, to be passed to the external client. void OnExtensionMessage(const std::string& message, int port_id); |