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

Side by Side Diff: content/browser/child_process_security_policy_impl.h

Issue 1241953009: Remove CanLoadPage; it's essentially unused, and not compatible with (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 void GrantReadRawCookies(int child_id); 118 void GrantReadRawCookies(int child_id);
119 119
120 // Revoke read raw cookies permission. 120 // Revoke read raw cookies permission.
121 void RevokeReadRawCookies(int child_id); 121 void RevokeReadRawCookies(int child_id);
122 122
123 // Before servicing a child process's request for a URL, the browser should 123 // Before servicing a child process's request for a URL, the browser should
124 // call this method to determine whether the process has the capability to 124 // call this method to determine whether the process has the capability to
125 // request the URL. 125 // request the URL.
126 bool CanRequestURL(int child_id, const GURL& url); 126 bool CanRequestURL(int child_id, const GURL& url);
127 127
128 // Returns true if the process is permitted to load pages from
129 // the given origin in main frames or subframes.
130 // Only might return false if --site-per-process flag is used.
131 bool CanLoadPage(int child_id,
132 const GURL& url,
133 ResourceType resource_type);
134
135 // Explicit permissions checks for FileSystemURL specified files. 128 // Explicit permissions checks for FileSystemURL specified files.
136 bool CanReadFileSystemFile(int child_id, const storage::FileSystemURL& url); 129 bool CanReadFileSystemFile(int child_id, const storage::FileSystemURL& url);
137 bool CanWriteFileSystemFile(int child_id, const storage::FileSystemURL& url); 130 bool CanWriteFileSystemFile(int child_id, const storage::FileSystemURL& url);
138 bool CanCreateFileSystemFile(int child_id, const storage::FileSystemURL& url); 131 bool CanCreateFileSystemFile(int child_id, const storage::FileSystemURL& url);
139 bool CanCreateReadWriteFileSystemFile(int child_id, 132 bool CanCreateReadWriteFileSystemFile(int child_id,
140 const storage::FileSystemURL& url); 133 const storage::FileSystemURL& url);
141 bool CanCopyIntoFileSystemFile(int child_id, 134 bool CanCopyIntoFileSystemFile(int child_id,
142 const storage::FileSystemURL& url); 135 const storage::FileSystemURL& url);
143 bool CanDeleteFileSystemFile(int child_id, const storage::FileSystemURL& url); 136 bool CanDeleteFileSystemFile(int child_id, const storage::FileSystemURL& url);
144 137
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 WorkerToMainProcessMap worker_map_; 244 WorkerToMainProcessMap worker_map_;
252 245
253 FileSystemPermissionPolicyMap file_system_policy_map_; 246 FileSystemPermissionPolicyMap file_system_policy_map_;
254 247
255 DISALLOW_COPY_AND_ASSIGN(ChildProcessSecurityPolicyImpl); 248 DISALLOW_COPY_AND_ASSIGN(ChildProcessSecurityPolicyImpl);
256 }; 249 };
257 250
258 } // namespace content 251 } // namespace content
259 252
260 #endif // CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_ 253 #endif // CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698