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

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

Issue 2437753003: Tighten IO thread blob/filesystem URL checks for apps with webview permission. (Closed)
Patch Set: arraysize Created 4 years, 2 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 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 const std::string& filesystem_id) override; 76 const std::string& filesystem_id) override;
77 bool CanReadWriteFileSystem(int child_id, 77 bool CanReadWriteFileSystem(int child_id,
78 const std::string& filesystem_id) override; 78 const std::string& filesystem_id) override;
79 bool CanCopyIntoFileSystem(int child_id, 79 bool CanCopyIntoFileSystem(int child_id,
80 const std::string& filesystem_id) override; 80 const std::string& filesystem_id) override;
81 bool CanDeleteFromFileSystem(int child_id, 81 bool CanDeleteFromFileSystem(int child_id,
82 const std::string& filesystem_id) override; 82 const std::string& filesystem_id) override;
83 bool HasWebUIBindings(int child_id) override; 83 bool HasWebUIBindings(int child_id) override;
84 void GrantSendMidiSysExMessage(int child_id) override; 84 void GrantSendMidiSysExMessage(int child_id) override;
85 bool CanAccessDataForOrigin(int child_id, const GURL& url) override; 85 bool CanAccessDataForOrigin(int child_id, const GURL& url) override;
86 bool HasSpecificPermissionForOrigin(int child_id,
87 const url::Origin& origin) override;
86 88
87 // Returns if |child_id| can read all of the |files|. 89 // Returns if |child_id| can read all of the |files|.
88 bool CanReadAllFiles(int child_id, const std::vector<base::FilePath>& files); 90 bool CanReadAllFiles(int child_id, const std::vector<base::FilePath>& files);
89 91
90 // Pseudo schemes are treated differently than other schemes because they 92 // Pseudo schemes are treated differently than other schemes because they
91 // cannot be requested like normal URLs. There is no mechanism for revoking 93 // cannot be requested like normal URLs. There is no mechanism for revoking
92 // pseudo schemes. 94 // pseudo schemes.
93 void RegisterPseudoScheme(const std::string& scheme); 95 void RegisterPseudoScheme(const std::string& scheme);
94 96
95 // Returns true iff |scheme| has been registered as pseudo scheme. 97 // Returns true iff |scheme| has been registered as pseudo scheme.
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 WorkerToMainProcessMap worker_map_; 259 WorkerToMainProcessMap worker_map_;
258 260
259 FileSystemPermissionPolicyMap file_system_policy_map_; 261 FileSystemPermissionPolicyMap file_system_policy_map_;
260 262
261 DISALLOW_COPY_AND_ASSIGN(ChildProcessSecurityPolicyImpl); 263 DISALLOW_COPY_AND_ASSIGN(ChildProcessSecurityPolicyImpl);
262 }; 264 };
263 265
264 } // namespace content 266 } // namespace content
265 267
266 #endif // CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_ 268 #endif // CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/net/chrome_extensions_network_delegate.cc ('k') | content/browser/child_process_security_policy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698