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

Side by Side Diff: content/child/fileapi/file_system_dispatcher.h

Issue 23760004: ChildProcessSecurityPolicy: Port FileAPIMessageFilter to use new checks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 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 | 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_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ 5 #ifndef CONTENT_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_
6 #define CONTENT_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ 6 #define CONTENT_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 const StatusCallback& error_callback); 115 const StatusCallback& error_callback);
116 void Cancel(int request_id_to_cancel, 116 void Cancel(int request_id_to_cancel,
117 const StatusCallback& callback); 117 const StatusCallback& callback);
118 void TouchFile(const GURL& file_path, 118 void TouchFile(const GURL& file_path,
119 const base::Time& last_access_time, 119 const base::Time& last_access_time,
120 const base::Time& last_modified_time, 120 const base::Time& last_modified_time,
121 const StatusCallback& callback); 121 const StatusCallback& callback);
122 122
123 // This returns a raw open PlatformFile, unlike the above, which are 123 // This returns a raw open PlatformFile, unlike the above, which are
124 // self-contained operations. 124 // self-contained operations.
125 void OpenFile(const GURL& file_path, 125 void OpenPepperFile(const GURL& file_path,
126 int file_flags, // passed to FileUtilProxy::CreateOrOpen 126 int pp_open_flags,
127 const OpenFileCallback& success_callback, 127 const OpenFileCallback& success_callback,
128 const StatusCallback& error_callback); 128 const StatusCallback& error_callback);
129 // This must be paired with OpenFile, and called after finished using the 129 // This must be paired with OpenFile, and called after finished using the
130 // raw PlatformFile returned from OpenFile. 130 // raw PlatformFile returned from OpenFile.
131 void NotifyCloseFile(int file_open_id); 131 void NotifyCloseFile(int file_open_id);
132 132
133 // The caller must send FileSystemHostMsg_DidReceiveSnapshot message 133 // The caller must send FileSystemHostMsg_DidReceiveSnapshot message
134 // with |request_id| passed to |success_callback| after the snapshot file 134 // with |request_id| passed to |success_callback| after the snapshot file
135 // is successfully received. 135 // is successfully received.
136 void CreateSnapshotFile(const GURL& file_path, 136 void CreateSnapshotFile(const GURL& file_path,
137 const CreateSnapshotFileCallback& success_callback, 137 const CreateSnapshotFileCallback& success_callback,
138 const StatusCallback& error_callback); 138 const StatusCallback& error_callback);
(...skipping 23 matching lines...) Expand all
162 quota::QuotaLimitType quota_policy); 162 quota::QuotaLimitType quota_policy);
163 163
164 IDMap<CallbackDispatcher, IDMapOwnPointer> dispatchers_; 164 IDMap<CallbackDispatcher, IDMapOwnPointer> dispatchers_;
165 165
166 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher); 166 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher);
167 }; 167 };
168 168
169 } // namespace content 169 } // namespace content
170 170
171 #endif // CONTENT_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ 171 #endif // CONTENT_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/pepper/pepper_security_helper.cc ('k') | content/child/fileapi/file_system_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698