summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorkalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-24 12:48:09 +0000
committerkalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-24 12:48:09 +0000
commit2c6e3b04ca361d052f1e8fdc70983bcc7c379dba (patch)
treebd66104e12f20722fc475c400714efa9a74fbc81 /content
parent21a73e99ae6db69d2204d16d9a1e03a54ab98584 (diff)
downloadchromium_src-2c6e3b04ca361d052f1e8fdc70983bcc7c379dba.zip
chromium_src-2c6e3b04ca361d052f1e8fdc70983bcc7c379dba.tar.gz
chromium_src-2c6e3b04ca361d052f1e8fdc70983bcc7c379dba.tar.bz2
Allow extension APIs to be called from WebUI. The only API currently
available is chrome.test, but the internal APIs used for <webview> and <extensionoptions> will be next. It also provides an alternative to chrome.send in theory. BUG=391944 R=rockot@chromium.org, jam@chromium.org Review URL: https://codereview.chromium.org/404883002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285217 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/browser/child_process_security_policy_impl.h6
-rw-r--r--content/public/browser/child_process_security_policy.h5
2 files changed, 6 insertions, 5 deletions
diff --git a/content/browser/child_process_security_policy_impl.h b/content/browser/child_process_security_policy_impl.h
index 08479f2..3cd1dd3 100644
--- a/content/browser/child_process_security_policy_impl.h
+++ b/content/browser/child_process_security_policy_impl.h
@@ -80,6 +80,7 @@ class CONTENT_EXPORT ChildProcessSecurityPolicyImpl
virtual bool CanDeleteFromFileSystem(
int child_id,
const std::string& filesystem_id) OVERRIDE;
+ virtual bool HasWebUIBindings(int child_id) OVERRIDE;
// Pseudo schemes are treated differently than other schemes because they
// cannot be requested like normal URLs. There is no mechanism for revoking
@@ -152,11 +153,6 @@ class CONTENT_EXPORT ChildProcessSecurityPolicyImpl
bool CanDeleteFileSystemFile(int child_id,
const fileapi::FileSystemURL& url);
- // Returns true if the specified child_id has been granted WebUIBindings.
- // The browser should check this property before assuming the child process is
- // allowed to use WebUIBindings.
- bool HasWebUIBindings(int child_id);
-
// Returns true if the specified child_id has been granted ReadRawCookies.
bool CanReadRawCookies(int child_id);
diff --git a/content/public/browser/child_process_security_policy.h b/content/public/browser/child_process_security_policy.h
index 261bf58..2edca7e 100644
--- a/content/public/browser/child_process_security_policy.h
+++ b/content/public/browser/child_process_security_policy.h
@@ -145,6 +145,11 @@ class ChildProcessSecurityPolicy {
// Returns true if delete-from access has been granted to |filesystem_id|.
virtual bool CanDeleteFromFileSystem(int child_id,
const std::string& filesystem_id) = 0;
+
+ // Returns true if the specified child_id has been granted WebUI bindings.
+ // The browser should check this property before assuming the child process
+ // is allowed to use WebUI bindings.
+ virtual bool HasWebUIBindings(int child_id) = 0;
};
} // namespace content