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/browser/child_process_security_policy_impl.h

Issue 2332263002: Updated suborigin serialization to latest spec proposal (Closed)
Patch Set: Actually disable test Created 4 years, 3 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
« no previous file with comments | « no previous file | content/browser/child_process_security_policy_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_ 5 #ifndef CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_
6 #define CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_ 6 #define CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // call this method to determine whether the process has the capability to 131 // call this method to determine whether the process has the capability to
132 // request the URL. 132 // request the URL.
133 bool CanRequestURL(int child_id, const GURL& url); 133 bool CanRequestURL(int child_id, const GURL& url);
134 134
135 // Whether the process is allowed to commit a document from the given URL. 135 // Whether the process is allowed to commit a document from the given URL.
136 // This is more restrictive than CanRequestURL, since CanRequestURL allows 136 // This is more restrictive than CanRequestURL, since CanRequestURL allows
137 // requests that might lead to cross-process navigations or external protocol 137 // requests that might lead to cross-process navigations or external protocol
138 // handlers. 138 // handlers.
139 bool CanCommitURL(int child_id, const GURL& url); 139 bool CanCommitURL(int child_id, const GURL& url);
140 140
141 // Whether the given origin is valid for an origin header. Valid origin
142 // headers are commitable URLs plus suborigin URLs.
143 bool CanSetAsOriginHeader(int child_id, const GURL& url);
144
141 // Explicit permissions checks for FileSystemURL specified files. 145 // Explicit permissions checks for FileSystemURL specified files.
142 bool CanReadFileSystemFile(int child_id, const storage::FileSystemURL& url); 146 bool CanReadFileSystemFile(int child_id, const storage::FileSystemURL& url);
143 bool CanWriteFileSystemFile(int child_id, const storage::FileSystemURL& url); 147 bool CanWriteFileSystemFile(int child_id, const storage::FileSystemURL& url);
144 bool CanCreateFileSystemFile(int child_id, const storage::FileSystemURL& url); 148 bool CanCreateFileSystemFile(int child_id, const storage::FileSystemURL& url);
145 bool CanCreateReadWriteFileSystemFile(int child_id, 149 bool CanCreateReadWriteFileSystemFile(int child_id,
146 const storage::FileSystemURL& url); 150 const storage::FileSystemURL& url);
147 bool CanCopyIntoFileSystemFile(int child_id, 151 bool CanCopyIntoFileSystemFile(int child_id,
148 const storage::FileSystemURL& url); 152 const storage::FileSystemURL& url);
149 bool CanDeleteFileSystemFile(int child_id, const storage::FileSystemURL& url); 153 bool CanDeleteFileSystemFile(int child_id, const storage::FileSystemURL& url);
150 154
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 WorkerToMainProcessMap worker_map_; 255 WorkerToMainProcessMap worker_map_;
252 256
253 FileSystemPermissionPolicyMap file_system_policy_map_; 257 FileSystemPermissionPolicyMap file_system_policy_map_;
254 258
255 DISALLOW_COPY_AND_ASSIGN(ChildProcessSecurityPolicyImpl); 259 DISALLOW_COPY_AND_ASSIGN(ChildProcessSecurityPolicyImpl);
256 }; 260 };
257 261
258 } // namespace content 262 } // namespace content
259 263
260 #endif // CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_ 264 #endif // CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/child_process_security_policy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698