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

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: apply kinuko suggestions on reducing sloc bloat 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 const StatusCallback& error_callback); 108 const StatusCallback& error_callback);
109 void Cancel(int request_id_to_cancel, 109 void Cancel(int request_id_to_cancel,
110 const StatusCallback& callback); 110 const StatusCallback& callback);
111 void TouchFile(const GURL& file_path, 111 void TouchFile(const GURL& file_path,
112 const base::Time& last_access_time, 112 const base::Time& last_access_time,
113 const base::Time& last_modified_time, 113 const base::Time& last_modified_time,
114 const StatusCallback& callback); 114 const StatusCallback& callback);
115 115
116 // This returns a raw open PlatformFile, unlike the above, which are 116 // This returns a raw open PlatformFile, unlike the above, which are
117 // self-contained operations. 117 // self-contained operations.
118 void OpenFile(const GURL& file_path, 118 void OpenPepperFile(const GURL& file_path,
119 int file_flags, // passed to FileUtilProxy::CreateOrOpen 119 int pp_open_flags,
120 const OpenFileCallback& success_callback, 120 const OpenFileCallback& success_callback,
121 const StatusCallback& error_callback); 121 const StatusCallback& error_callback);
122 // This must be paired with OpenFile, and called after finished using the 122 // This must be paired with OpenFile, and called after finished using the
123 // raw PlatformFile returned from OpenFile. 123 // raw PlatformFile returned from OpenFile.
124 void NotifyCloseFile(int file_open_id); 124 void NotifyCloseFile(int file_open_id);
125 125
126 // The caller must send FileSystemHostMsg_DidReceiveSnapshot message 126 // The caller must send FileSystemHostMsg_DidReceiveSnapshot message
127 // with |request_id| passed to |success_callback| after the snapshot file 127 // with |request_id| passed to |success_callback| after the snapshot file
128 // is successfully received. 128 // is successfully received.
129 void CreateSnapshotFile(const GURL& file_path, 129 void CreateSnapshotFile(const GURL& file_path,
130 const CreateSnapshotFileCallback& success_callback, 130 const CreateSnapshotFileCallback& success_callback,
131 const StatusCallback& error_callback); 131 const StatusCallback& error_callback);
(...skipping 23 matching lines...) Expand all
155 quota::QuotaLimitType quota_policy); 155 quota::QuotaLimitType quota_policy);
156 156
157 IDMap<CallbackDispatcher, IDMapOwnPointer> dispatchers_; 157 IDMap<CallbackDispatcher, IDMapOwnPointer> dispatchers_;
158 158
159 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher); 159 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher);
160 }; 160 };
161 161
162 } // namespace content 162 } // namespace content
163 163
164 #endif // CONTENT_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ 164 #endif // CONTENT_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698