Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(579)

Side by Side Diff: content/common/file_system/webfilesystem_callback_dispatcher.cc

Issue 6864040: Fixed file/directory url resolution for external mount point provider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/common/file_system/webfilesystem_callback_dispatcher.h" 5 #include "content/common/file_system/webfilesystem_callback_dispatcher.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/file_util_proxy.h" 10 #include "base/file_util_proxy.h"
(...skipping 15 matching lines...) Expand all
26 WebFileSystemCallbackDispatcher::WebFileSystemCallbackDispatcher( 26 WebFileSystemCallbackDispatcher::WebFileSystemCallbackDispatcher(
27 WebFileSystemCallbacks* callbacks) 27 WebFileSystemCallbacks* callbacks)
28 : callbacks_(callbacks) { 28 : callbacks_(callbacks) {
29 DCHECK(callbacks_); 29 DCHECK(callbacks_);
30 } 30 }
31 31
32 void WebFileSystemCallbackDispatcher::DidSucceed() { 32 void WebFileSystemCallbackDispatcher::DidSucceed() {
33 callbacks_->didSucceed(); 33 callbacks_->didSucceed();
34 } 34 }
35 35
36 void WebFileSystemCallbackDispatcher::DidGetLocalPath(
37 const FilePath& local_path) {
38 NOTREACHED();
39 }
40
36 void WebFileSystemCallbackDispatcher::DidReadMetadata( 41 void WebFileSystemCallbackDispatcher::DidReadMetadata(
37 const base::PlatformFileInfo& file_info, const FilePath& platform_path) { 42 const base::PlatformFileInfo& file_info, const FilePath& platform_path) {
38 WebFileInfo web_file_info; 43 WebFileInfo web_file_info;
39 web_file_info.modificationTime = file_info.last_modified.ToDoubleT(); 44 web_file_info.modificationTime = file_info.last_modified.ToDoubleT();
40 web_file_info.length = file_info.size; 45 web_file_info.length = file_info.size;
41 if (file_info.is_directory) 46 if (file_info.is_directory)
42 web_file_info.type = WebFileInfo::TypeDirectory; 47 web_file_info.type = WebFileInfo::TypeDirectory;
43 else 48 else
44 web_file_info.type = WebFileInfo::TypeFile; 49 web_file_info.type = WebFileInfo::TypeFile;
45 web_file_info.platformPath = 50 web_file_info.platformPath =
(...skipping 20 matching lines...) Expand all
66 71
67 void WebFileSystemCallbackDispatcher::DidFail( 72 void WebFileSystemCallbackDispatcher::DidFail(
68 base::PlatformFileError error_code) { 73 base::PlatformFileError error_code) {
69 callbacks_->didFail( 74 callbacks_->didFail(
70 webkit_glue::PlatformFileErrorToWebFileError(error_code)); 75 webkit_glue::PlatformFileErrorToWebFileError(error_code));
71 } 76 }
72 77
73 void WebFileSystemCallbackDispatcher::DidWrite(int64 bytes, bool complete) { 78 void WebFileSystemCallbackDispatcher::DidWrite(int64 bytes, bool complete) {
74 NOTREACHED(); 79 NOTREACHED();
75 } 80 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698