OLD | NEW |
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 #include "webkit/fileapi/obfuscated_file_util.h" | 5 #include "webkit/fileapi/obfuscated_file_util.h" |
6 | 6 |
7 #include <queue> | 7 #include <queue> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 } | 176 } |
177 | 177 |
178 virtual base::Time LastModifiedTime() OVERRIDE { | 178 virtual base::Time LastModifiedTime() OVERRIDE { |
179 return current_.file_info.modification_time; | 179 return current_.file_info.modification_time; |
180 } | 180 } |
181 | 181 |
182 virtual bool IsDirectory() OVERRIDE { | 182 virtual bool IsDirectory() OVERRIDE { |
183 return current_.file_info.is_directory(); | 183 return current_.file_info.is_directory(); |
184 } | 184 } |
185 | 185 |
| 186 virtual bool IsLink() OVERRIDE { |
| 187 return false; |
| 188 } |
| 189 |
186 private: | 190 private: |
187 typedef FileSystemDirectoryDatabase::FileId FileId; | 191 typedef FileSystemDirectoryDatabase::FileId FileId; |
188 typedef FileSystemDirectoryDatabase::FileInfo FileInfo; | 192 typedef FileSystemDirectoryDatabase::FileInfo FileInfo; |
189 | 193 |
190 struct FileRecord { | 194 struct FileRecord { |
191 FileId file_id; | 195 FileId file_id; |
192 FileInfo file_info; | 196 FileInfo file_info; |
193 FilePath file_path; | 197 FilePath file_path; |
194 }; | 198 }; |
195 | 199 |
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1307 return false; | 1311 return false; |
1308 } | 1312 } |
1309 origin_database_.reset( | 1313 origin_database_.reset( |
1310 new FileSystemOriginDatabase( | 1314 new FileSystemOriginDatabase( |
1311 file_system_directory_.AppendASCII(kOriginDatabaseName))); | 1315 file_system_directory_.AppendASCII(kOriginDatabaseName))); |
1312 } | 1316 } |
1313 return true; | 1317 return true; |
1314 } | 1318 } |
1315 | 1319 |
1316 } // namespace fileapi | 1320 } // namespace fileapi |
OLD | NEW |