OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/child/fileapi/webfilesystem_callback_adapters.h" | 5 #include "content/child/fileapi/webfilesystem_callback_adapters.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "googleurl/src/gurl.h" | |
13 #include "third_party/WebKit/public/web/WebFileSystemCallbacks.h" | |
14 #include "third_party/WebKit/public/platform/WebFileInfo.h" | 12 #include "third_party/WebKit/public/platform/WebFileInfo.h" |
15 #include "third_party/WebKit/public/platform/WebFileSystem.h" | 13 #include "third_party/WebKit/public/platform/WebFileSystem.h" |
16 #include "third_party/WebKit/public/platform/WebString.h" | 14 #include "third_party/WebKit/public/platform/WebString.h" |
| 15 #include "third_party/WebKit/public/web/WebFileSystemCallbacks.h" |
| 16 #include "url/gurl.h" |
17 #include "webkit/common/fileapi/directory_entry.h" | 17 #include "webkit/common/fileapi/directory_entry.h" |
18 #include "webkit/common/fileapi/file_system_util.h" | 18 #include "webkit/common/fileapi/file_system_util.h" |
19 #include "webkit/glue/webkit_glue.h" | 19 #include "webkit/glue/webkit_glue.h" |
20 | 20 |
21 using WebKit::WebFileInfo; | 21 using WebKit::WebFileInfo; |
22 using WebKit::WebFileSystemCallbacks; | 22 using WebKit::WebFileSystemCallbacks; |
23 using WebKit::WebFileSystemEntry; | 23 using WebKit::WebFileSystemEntry; |
24 using WebKit::WebString; | 24 using WebKit::WebString; |
25 using WebKit::WebVector; | 25 using WebKit::WebVector; |
26 | 26 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 callbacks->didReadDirectory(file_system_entries, has_more); | 66 callbacks->didReadDirectory(file_system_entries, has_more); |
67 } | 67 } |
68 | 68 |
69 void OpenFileSystemCallbackAdapter( | 69 void OpenFileSystemCallbackAdapter( |
70 WebKit::WebFileSystemCallbacks* callbacks, | 70 WebKit::WebFileSystemCallbacks* callbacks, |
71 const std::string& name, const GURL& root) { | 71 const std::string& name, const GURL& root) { |
72 callbacks->didOpenFileSystem(UTF8ToUTF16(name), root); | 72 callbacks->didOpenFileSystem(UTF8ToUTF16(name), root); |
73 } | 73 } |
74 | 74 |
75 } // namespace content | 75 } // namespace content |
OLD | NEW |