diff options
author | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-15 21:03:42 +0000 |
---|---|---|
committer | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-15 21:03:42 +0000 |
commit | d959ce283ff8d5f27fb883acea5926a679866e2b (patch) | |
tree | c55e04833b883256d4e41b2488e863d70b57e1fc /webkit/glue/webframe.h | |
parent | ca469ddc7f7415b1c94c756bf0bcf77536a7f2ef (diff) | |
download | chromium_src-d959ce283ff8d5f27fb883acea5926a679866e2b.zip chromium_src-d959ce283ff8d5f27fb883acea5926a679866e2b.tar.gz chromium_src-d959ce283ff8d5f27fb883acea5926a679866e2b.tar.bz2 |
Add a hack to enable cross-origin XHR for all pages with a "chrome-extension"
URL as the toplevel frame. This is a temporary workaround until we can do it
the proper way, which requires a webkit refactoring in progress by Alexei.
Review URL: http://codereview.chromium.org/67153
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13790 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webframe.h')
-rw-r--r-- | webkit/glue/webframe.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/webkit/glue/webframe.h b/webkit/glue/webframe.h index 97559b6..b61125d 100644 --- a/webkit/glue/webframe.h +++ b/webkit/glue/webframe.h @@ -51,6 +51,12 @@ class WebFrame { // TODO(fqian): Remove this method when V8 supports NP runtime. virtual void* GetFrameImplementation() = 0; + // TODO(mpcomplete): remove this before Chrome extensions ship. + // HACK. This is a temporary workaround to allow cross-origin XHR for Chrome + // extensions. It allows no fine-grained control over what origins are + // accessible, instead granting access to everything (including file URLs). + virtual void AllowCrossOriginAccessHack() = 0; + virtual NPObject* GetWindowNPObject() = 0; // Loads the given WebRequest. |