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

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

Issue 10692104: Add isWritableFileEntry to the fileSystem API (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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 #pragma once 8 #pragma once
9 9
10 #include <map> 10 #include <map>
(...skipping 30 matching lines...) Expand all
41 virtual void GrantReadFileSystem( 41 virtual void GrantReadFileSystem(
42 int child_id, 42 int child_id,
43 const std::string& filesystem_id) OVERRIDE; 43 const std::string& filesystem_id) OVERRIDE;
44 virtual void GrantReadWriteFileSystem( 44 virtual void GrantReadWriteFileSystem(
45 int child_id, 45 int child_id,
46 const std::string& filesystem_id) OVERRIDE; 46 const std::string& filesystem_id) OVERRIDE;
47 virtual void GrantScheme(int child_id, const std::string& scheme) OVERRIDE; 47 virtual void GrantScheme(int child_id, const std::string& scheme) OVERRIDE;
48 virtual bool CanReadFile(int child_id, const FilePath& file) OVERRIDE; 48 virtual bool CanReadFile(int child_id, const FilePath& file) OVERRIDE;
49 virtual bool CanReadFileSystem(int child_id, 49 virtual bool CanReadFileSystem(int child_id,
50 const std::string& filesystem_id) OVERRIDE; 50 const std::string& filesystem_id) OVERRIDE;
51 virtual bool CanReadWriteFileSystem(
52 int child_id,
53 const std::string& filesystem_id) OVERRIDE;
51 54
52 // Pseudo schemes are treated differently than other schemes because they 55 // Pseudo schemes are treated differently than other schemes because they
53 // cannot be requested like normal URLs. There is no mechanism for revoking 56 // cannot be requested like normal URLs. There is no mechanism for revoking
54 // pseudo schemes. 57 // pseudo schemes.
55 void RegisterPseudoScheme(const std::string& scheme); 58 void RegisterPseudoScheme(const std::string& scheme);
56 59
57 // Returns true iff |scheme| has been registered as pseudo scheme. 60 // Returns true iff |scheme| has been registered as pseudo scheme.
58 bool IsPseudoScheme(const std::string& scheme); 61 bool IsPseudoScheme(const std::string& scheme);
59 62
60 // Returns true iff |scheme| is listed as a disabled scheme. 63 // Returns true iff |scheme| is listed as a disabled scheme.
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 SecurityStateMap security_state_; 202 SecurityStateMap security_state_;
200 203
201 // This maps keeps the record of which js worker thread child process 204 // This maps keeps the record of which js worker thread child process
202 // corresponds to which main js thread child process. 205 // corresponds to which main js thread child process.
203 WorkerToMainProcessMap worker_map_; 206 WorkerToMainProcessMap worker_map_;
204 207
205 DISALLOW_COPY_AND_ASSIGN(ChildProcessSecurityPolicyImpl); 208 DISALLOW_COPY_AND_ASSIGN(ChildProcessSecurityPolicyImpl);
206 }; 209 };
207 210
208 #endif // CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_ 211 #endif // CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698