summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/extensions/extension_renderer_info.h
diff options
context:
space:
mode:
authorrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-28 17:05:51 +0000
committerrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-28 17:05:51 +0000
commit6ac956af125cd1ff8a8be23f8515dba6809b1aff (patch)
tree38b3e5caabeb273244b348e1bd101181aa6ce576 /chrome/renderer/extensions/extension_renderer_info.h
parentb84ae679f054d846372e8e8ded5c31e8e9dc2ec8 (diff)
downloadchromium_src-6ac956af125cd1ff8a8be23f8515dba6809b1aff.zip
chromium_src-6ac956af125cd1ff8a8be23f8515dba6809b1aff.tar.gz
chromium_src-6ac956af125cd1ff8a8be23f8515dba6809b1aff.tar.bz2
Revert 57788 - Expose Extension Bindings to Component Applications
This patch allows component (built-in) extension apps to have extension api bindings. Note that this patch adds browser-side api permission checking for extension requests. This is step two along the path to exposing an extension management api to the gallery (webstore). BUG=27431 Review URL: http://codereview.chromium.org/3163044 TBR=rafaelw@chromium.org Review URL: http://codereview.chromium.org/3249004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57789 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/extensions/extension_renderer_info.h')
-rw-r--r--chrome/renderer/extensions/extension_renderer_info.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/chrome/renderer/extensions/extension_renderer_info.h b/chrome/renderer/extensions/extension_renderer_info.h
index 926f275..ec0d9a3 100644
--- a/chrome/renderer/extensions/extension_renderer_info.h
+++ b/chrome/renderer/extensions/extension_renderer_info.h
@@ -10,7 +10,6 @@
#include <vector>
#include "base/gtest_prod_util.h"
-#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_extent.h"
#include "googleurl/src/gurl.h"
@@ -35,13 +34,6 @@ class ExtensionRendererInfo {
// Returns the extension ID that the given URL is a part of, or empty if
// none. This includes web URLs that are part of an extension's web extent.
- static std::string GetIdByURL(const GURL& url);
-
- // Returns the ExtensionRendererInfo that the given URL is a part of, or NULL
- // if none. This includes web URLs that are part of an extension's web extent.
- // NOTE: This can return NULL if called before UpdateExtensions receives
- // bulk extension data (e.g. if called from
- // EventBindings::HandleContextCreated)
static ExtensionRendererInfo* GetByURL(const GURL& url);
// Returns true if |new_url| is in the extent of the same extension as
@@ -51,11 +43,6 @@ class ExtensionRendererInfo {
// Look up an ExtensionInfo object by id.
static ExtensionRendererInfo* GetByID(const std::string& id);
- // Returns true if |url| should get extension api bindings and be permitted
- // to make api calls. Note that this is independent of what extension
- // permissions the given extension has been granted.
- static bool ExtensionBindingsAllowed(const GURL& url);
-
private:
void Update(const ViewMsg_ExtensionRendererInfo& info);
@@ -64,7 +51,6 @@ class ExtensionRendererInfo {
std::string id_;
ExtensionExtent web_extent_;
std::string name_;
- Extension::Location location_;
GURL icon_url_;
// static