OLD | NEW |
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 #include "chrome/common/file_system/webfilesystem_callback_dispatcher.h" | 5 #include "chrome/common/file_system/webfilesystem_callback_dispatcher.h" |
6 | 6 |
| 7 #include <string> |
| 8 #include <vector> |
| 9 |
7 #include "base/file_util_proxy.h" | 10 #include "base/file_util_proxy.h" |
| 11 #include "base/logging.h" |
8 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
9 #include "third_party/WebKit/WebKit/chromium/public/WebFileInfo.h" | 13 #include "third_party/WebKit/WebKit/chromium/public/WebFileInfo.h" |
10 #include "third_party/WebKit/WebKit/chromium/public/WebFileSystem.h" | 14 #include "third_party/WebKit/WebKit/chromium/public/WebFileSystem.h" |
11 #include "third_party/WebKit/WebKit/chromium/public/WebFileSystemCallbacks.h" | 15 #include "third_party/WebKit/WebKit/chromium/public/WebFileSystemCallbacks.h" |
12 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" | 16 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" |
13 #include "webkit/glue/webkit_glue.h" | 17 #include "webkit/glue/webkit_glue.h" |
14 | 18 |
15 using WebKit::WebFileInfo; | 19 using WebKit::WebFileInfo; |
16 using WebKit::WebFileSystemCallbacks; | 20 using WebKit::WebFileSystemCallbacks; |
17 using WebKit::WebFileSystemEntry; | 21 using WebKit::WebFileSystemEntry; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 63 |
60 void WebFileSystemCallbackDispatcher::DidFail( | 64 void WebFileSystemCallbackDispatcher::DidFail( |
61 base::PlatformFileError error_code) { | 65 base::PlatformFileError error_code) { |
62 callbacks_->didFail( | 66 callbacks_->didFail( |
63 webkit_glue::PlatformFileErrorToWebFileError(error_code)); | 67 webkit_glue::PlatformFileErrorToWebFileError(error_code)); |
64 } | 68 } |
65 | 69 |
66 void WebFileSystemCallbackDispatcher::DidWrite(int64 bytes, bool complete) { | 70 void WebFileSystemCallbackDispatcher::DidWrite(int64 bytes, bool complete) { |
67 NOTREACHED(); | 71 NOTREACHED(); |
68 } | 72 } |
69 | |
OLD | NEW |