Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: content/public/browser/child_process_security_policy.h

Issue 404883002: Allow extension APIs to be called from WebUI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ken Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_
6 #define CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_ 6 #define CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 virtual bool CanReadWriteFileSystem(int child_id, 138 virtual bool CanReadWriteFileSystem(int child_id,
139 const std::string& filesystem_id) = 0; 139 const std::string& filesystem_id) = 0;
140 140
141 // Returns true if copy-into access has been granted to |filesystem_id|. 141 // Returns true if copy-into access has been granted to |filesystem_id|.
142 virtual bool CanCopyIntoFileSystem(int child_id, 142 virtual bool CanCopyIntoFileSystem(int child_id,
143 const std::string& filesystem_id) = 0; 143 const std::string& filesystem_id) = 0;
144 144
145 // Returns true if delete-from access has been granted to |filesystem_id|. 145 // Returns true if delete-from access has been granted to |filesystem_id|.
146 virtual bool CanDeleteFromFileSystem(int child_id, 146 virtual bool CanDeleteFromFileSystem(int child_id,
147 const std::string& filesystem_id) = 0; 147 const std::string& filesystem_id) = 0;
148
149 // Returns true if the specified child_id has been granted WebUIBindings.
Charlie Reis 2014/07/22 21:10:24 nit: WebUI bindings (same below) (I realize it's
not at google - send to devlin 2014/07/22 23:42:32 Done.
150 // The browser should check this property before assuming the child process is
151 // allowed to use WebUIBindings.
152 virtual bool HasWebUIBindings(int child_id) = 0;
148 }; 153 };
149 154
150 } // namespace content 155 } // namespace content
151 156
152 #endif // CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_ 157 #endif // CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698