| 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/support/simple_file_system.h" | 5 #include "webkit/support/simple_file_system.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "base/time.h" | 12 #include "base/time.h" |
| 13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 14 #include "net/base/mime_util.h" | 14 #include "net/base/mime_util.h" |
| 15 #include "third_party/WebKit/public/platform/WebFileInfo.h" | 15 #include "third_party/WebKit/public/platform/WebFileInfo.h" |
| 16 #include "third_party/WebKit/public/platform/WebURL.h" | 16 #include "third_party/WebKit/public/platform/WebURL.h" |
| 17 #include "third_party/WebKit/public/platform/WebVector.h" | 17 #include "third_party/WebKit/public/platform/WebVector.h" |
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
| 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback
s.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback
s.h" |
| 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemEntry.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemEntry.h" |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 web_file_info.modificationTime = info.last_modified.ToDoubleT(); | 402 web_file_info.modificationTime = info.last_modified.ToDoubleT(); |
| 403 web_file_info.type = info.is_directory ? | 403 web_file_info.type = info.is_directory ? |
| 404 WebFileInfo::TypeDirectory : WebFileInfo::TypeFile; | 404 WebFileInfo::TypeDirectory : WebFileInfo::TypeFile; |
| 405 web_file_info.platformPath = | 405 web_file_info.platformPath = |
| 406 webkit_base::FilePathToWebString(platform_path); | 406 webkit_base::FilePathToWebString(platform_path); |
| 407 callbacks->didCreateSnapshotFile(web_file_info); | 407 callbacks->didCreateSnapshotFile(web_file_info); |
| 408 } else { | 408 } else { |
| 409 callbacks->didFail(fileapi::PlatformFileErrorToWebFileError(result)); | 409 callbacks->didFail(fileapi::PlatformFileErrorToWebFileError(result)); |
| 410 } | 410 } |
| 411 } | 411 } |
| OLD | NEW |