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

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

Issue 18282010: Cleanup: split FileSystemDispatcher::Create into CreateFile and CreateDirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/child/fileapi/file_system_dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 const StatusCallback& callback); 75 const StatusCallback& callback);
76 void Copy(const GURL& src_path, 76 void Copy(const GURL& src_path,
77 const GURL& dest_path, 77 const GURL& dest_path,
78 const StatusCallback& callback); 78 const StatusCallback& callback);
79 void Remove(const GURL& path, 79 void Remove(const GURL& path,
80 bool recursive, 80 bool recursive,
81 const StatusCallback& callback); 81 const StatusCallback& callback);
82 void ReadMetadata(const GURL& path, 82 void ReadMetadata(const GURL& path,
83 const MetadataCallback& success_callback, 83 const MetadataCallback& success_callback,
84 const StatusCallback& error_callback); 84 const StatusCallback& error_callback);
85 void Create(const GURL& path, 85 void CreateFile(const GURL& path,
86 bool exclusive, 86 bool exclusive,
87 bool is_directory, 87 const StatusCallback& callback);
88 bool recursive, 88 void CreateDirectory(const GURL& path,
89 const StatusCallback& callback); 89 bool exclusive,
90 bool recursive,
91 const StatusCallback& callback);
90 void Exists(const GURL& path, 92 void Exists(const GURL& path,
91 bool for_directory, 93 bool for_directory,
92 const StatusCallback& callback); 94 const StatusCallback& callback);
93 void ReadDirectory(const GURL& path, 95 void ReadDirectory(const GURL& path,
94 const ReadDirectoryCallback& success_callback, 96 const ReadDirectoryCallback& success_callback,
95 const StatusCallback& error_callback); 97 const StatusCallback& error_callback);
96 void Truncate(const GURL& path, 98 void Truncate(const GURL& path,
97 int64 offset, 99 int64 offset,
98 int* request_id_out, 100 int* request_id_out,
99 const StatusCallback& callback); 101 const StatusCallback& callback);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 quota::QuotaLimitType quota_policy); 151 quota::QuotaLimitType quota_policy);
150 152
151 IDMap<CallbackDispatcher, IDMapOwnPointer> dispatchers_; 153 IDMap<CallbackDispatcher, IDMapOwnPointer> dispatchers_;
152 154
153 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher); 155 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher);
154 }; 156 };
155 157
156 } // namespace content 158 } // namespace content
157 159
158 #endif // CONTENT_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ 160 #endif // CONTENT_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | content/child/fileapi/file_system_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698