OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/browser/local_discovery/storage/privet_filesystem_async_util.h" | |
6 | |
7 #include "webkit/browser/fileapi/file_system_url.h" | |
8 | |
9 namespace local_discovery { | |
10 | |
11 void PrivetFileSystemAsyncUtil::CreateOrOpen( | |
12 scoped_ptr<fileapi::FileSystemOperationContext> context, | |
13 const fileapi::FileSystemURL& url, | |
14 int file_flags, | |
15 const CreateOrOpenCallback& callback) { | |
kinuko
2014/01/09 04:27:41
Can we have NOTIMPLEMENTED() / NOTREACHED() and er
Noam Samuel
2014/01/09 20:23:24
Done.
| |
16 } | |
17 | |
18 void PrivetFileSystemAsyncUtil::EnsureFileExists( | |
19 scoped_ptr<fileapi::FileSystemOperationContext> context, | |
20 const fileapi::FileSystemURL& url, | |
21 const EnsureFileExistsCallback& callback) { | |
22 } | |
23 | |
24 void PrivetFileSystemAsyncUtil::CreateDirectory( | |
25 scoped_ptr<fileapi::FileSystemOperationContext> context, | |
26 const fileapi::FileSystemURL& url, | |
27 bool exclusive, | |
28 bool recursive, | |
29 const StatusCallback& callback) { | |
30 } | |
31 | |
32 void PrivetFileSystemAsyncUtil::GetFileInfo( | |
33 scoped_ptr<fileapi::FileSystemOperationContext> context, | |
34 const fileapi::FileSystemURL& url, | |
35 const GetFileInfoCallback& callback) { | |
36 base::PlatformFileInfo file_info; | |
37 | |
38 if (url.path() == base::FilePath(FILE_PATH_LITERAL("/privet"))) { | |
39 file_info.size = 20; | |
40 file_info.is_directory = true; | |
41 file_info.is_symbolic_link = false; | |
42 } else { | |
43 file_info.size = 3000; | |
44 file_info.is_directory = false; | |
45 file_info.is_symbolic_link = false; | |
46 } | |
47 callback.Run(base::PLATFORM_FILE_OK, | |
48 file_info); | |
49 } | |
50 | |
51 void PrivetFileSystemAsyncUtil::ReadDirectory( | |
52 scoped_ptr<fileapi::FileSystemOperationContext> context, | |
53 const fileapi::FileSystemURL& url, | |
54 const ReadDirectoryCallback& callback) { | |
55 EntryList entry_list; | |
56 | |
57 fileapi::DirectoryEntry entry("Random file", | |
58 fileapi::DirectoryEntry::FILE, | |
59 3000, | |
60 base::Time()); | |
61 entry_list.push_back(entry); | |
62 | |
63 callback.Run(base::PLATFORM_FILE_OK, entry_list, false); | |
64 } | |
65 | |
66 void PrivetFileSystemAsyncUtil::Touch( | |
67 scoped_ptr<fileapi::FileSystemOperationContext> context, | |
68 const fileapi::FileSystemURL& url, | |
69 const base::Time& last_access_time, | |
70 const base::Time& last_modified_time, | |
71 const StatusCallback& callback) { | |
72 } | |
73 | |
74 void PrivetFileSystemAsyncUtil::Truncate( | |
75 scoped_ptr<fileapi::FileSystemOperationContext> context, | |
76 const fileapi::FileSystemURL& url, | |
77 int64 length, | |
78 const StatusCallback& callback) { | |
79 } | |
80 | |
81 void PrivetFileSystemAsyncUtil::CopyFileLocal( | |
82 scoped_ptr<fileapi::FileSystemOperationContext> context, | |
83 const fileapi::FileSystemURL& src_url, | |
84 const fileapi::FileSystemURL& dest_url, | |
85 CopyOrMoveOption option, | |
86 const CopyFileProgressCallback& progress_callback, | |
87 const StatusCallback& callback) { | |
88 } | |
89 | |
90 void PrivetFileSystemAsyncUtil::MoveFileLocal( | |
91 scoped_ptr<fileapi::FileSystemOperationContext> context, | |
92 const fileapi::FileSystemURL& src_url, | |
93 const fileapi::FileSystemURL& dest_url, | |
94 CopyOrMoveOption option, | |
95 const StatusCallback& callback) { | |
96 } | |
97 | |
98 void PrivetFileSystemAsyncUtil::CopyInForeignFile( | |
99 scoped_ptr<fileapi::FileSystemOperationContext> context, | |
100 const base::FilePath& src_file_path, | |
101 const fileapi::FileSystemURL& dest_url, | |
102 const StatusCallback& callback) { | |
103 } | |
104 | |
105 void PrivetFileSystemAsyncUtil::DeleteFile( | |
106 scoped_ptr<fileapi::FileSystemOperationContext> context, | |
107 const fileapi::FileSystemURL& url, | |
108 const StatusCallback& callback) { | |
109 } | |
110 | |
111 void PrivetFileSystemAsyncUtil::DeleteDirectory( | |
112 scoped_ptr<fileapi::FileSystemOperationContext> context, | |
113 const fileapi::FileSystemURL& url, | |
114 const StatusCallback& callback) { | |
115 } | |
116 | |
117 void PrivetFileSystemAsyncUtil::DeleteRecursively( | |
118 scoped_ptr<fileapi::FileSystemOperationContext> context, | |
119 const fileapi::FileSystemURL& url, | |
120 const StatusCallback& callback) { | |
121 } | |
122 | |
123 void PrivetFileSystemAsyncUtil::CreateSnapshotFile( | |
124 scoped_ptr<fileapi::FileSystemOperationContext> context, | |
125 const fileapi::FileSystemURL& url, | |
126 const CreateSnapshotFileCallback& callback) { | |
127 } | |
128 | |
gene
2014/01/09 08:13:53
extra empty line
Noam Samuel
2014/01/09 20:23:24
Done.
| |
129 | |
130 } // namespace local_discovery | |
OLD | NEW |