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

Side by Side Diff: chrome/common/file_system/file_system_dispatcher.h

Issue 4350001: Added ability to propogate create to suggest whether or not filesystem's root... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_COMMON_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_H_ 5 #ifndef CHROME_COMMON_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_H_
6 #define CHROME_COMMON_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_H_ 6 #define CHROME_COMMON_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 17 matching lines...) Expand all
28 class FileSystemDispatcher { 28 class FileSystemDispatcher {
29 public: 29 public:
30 FileSystemDispatcher(); 30 FileSystemDispatcher();
31 ~FileSystemDispatcher(); 31 ~FileSystemDispatcher();
32 32
33 bool OnMessageReceived(const IPC::Message& msg); 33 bool OnMessageReceived(const IPC::Message& msg);
34 34
35 bool OpenFileSystem(const GURL& origin_url, 35 bool OpenFileSystem(const GURL& origin_url,
36 fileapi::FileSystemType type, 36 fileapi::FileSystemType type,
37 long long size, 37 long long size,
38 bool create,
38 fileapi::FileSystemCallbackDispatcher* dispatcher); 39 fileapi::FileSystemCallbackDispatcher* dispatcher);
39 bool Move(const FilePath& src_path, 40 bool Move(const FilePath& src_path,
40 const FilePath& dest_path, 41 const FilePath& dest_path,
41 fileapi::FileSystemCallbackDispatcher* dispatcher); 42 fileapi::FileSystemCallbackDispatcher* dispatcher);
42 bool Copy(const FilePath& src_path, 43 bool Copy(const FilePath& src_path,
43 const FilePath& dest_path, 44 const FilePath& dest_path,
44 fileapi::FileSystemCallbackDispatcher* dispatcher); 45 fileapi::FileSystemCallbackDispatcher* dispatcher);
45 bool Remove(const FilePath& path, 46 bool Remove(const FilePath& path,
46 bool recursive, 47 bool recursive,
47 fileapi::FileSystemCallbackDispatcher* dispatcher); 48 fileapi::FileSystemCallbackDispatcher* dispatcher);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 bool has_more); 92 bool has_more);
92 void DidFail(int request_id, base::PlatformFileError error_code); 93 void DidFail(int request_id, base::PlatformFileError error_code);
93 void DidWrite(int request_id, int64 bytes, bool complete); 94 void DidWrite(int request_id, int64 bytes, bool complete);
94 95
95 IDMap<fileapi::FileSystemCallbackDispatcher, IDMapOwnPointer> dispatchers_; 96 IDMap<fileapi::FileSystemCallbackDispatcher, IDMapOwnPointer> dispatchers_;
96 97
97 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher); 98 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher);
98 }; 99 };
99 100
100 #endif // CHROME_COMMON_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_H_ 101 #endif // CHROME_COMMON_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/file_system/file_system_dispatcher_host.cc ('k') | chrome/common/file_system/file_system_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698