From 35506359934707a1dc47e0b26684a145835dd9c3 Mon Sep 17 00:00:00 2001 From: "mpcomplete@chromium.org" Date: Fri, 7 Aug 2009 18:58:19 +0000 Subject: Add module-level permissions to extensions. This first pass is fairly simple. If a permission is not specified in the manifest, the corresponding module will not be exposed to script. For example, without specifying the "tabs" permission, chrome.tabs and chrome.windows will not be available. BUG=12140 TEST=no Review URL: http://codereview.chromium.org/164039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22745 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/renderer/render_thread.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chrome/renderer/render_thread.h') diff --git a/chrome/renderer/render_thread.h b/chrome/renderer/render_thread.h index d9cd1fb..f90a6a9 100644 --- a/chrome/renderer/render_thread.h +++ b/chrome/renderer/render_thread.h @@ -126,6 +126,8 @@ class RenderThread : public RenderThreadBase, void OnSetExtensionFunctionNames(const std::vector& names); void OnPageActionsUpdated(const std::string& extension_id, const std::vector& page_actions); + void OnExtensionSetPermissions(const std::string& extension_id, + const std::vector& permissions); void OnSetNextPageID(int32 next_page_id); void OnSetCSSColors(const std::vector& colors); void OnCreateNewView(gfx::NativeViewId parent_hwnd, -- cgit v1.1