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

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

Issue 7820005: Clean up old dead code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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
« no previous file with comments | « content/common/file_system/webfilesystem_impl.h ('k') | webkit/fileapi/file_system_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_impl.h" 5 #include "content/common/file_system/webfilesystem_impl.h"
6 6
7 #include "content/common/child_thread.h" 7 #include "content/common/child_thread.h"
8 #include "content/common/file_system/file_system_dispatcher.h" 8 #include "content/common/file_system/file_system_dispatcher.h"
9 #include "content/common/file_system/webfilesystem_callback_dispatcher.h" 9 #include "content/common/file_system/webfilesystem_callback_dispatcher.h"
10 #include "content/common/file_system/webfilewriter_impl.h" 10 #include "content/common/file_system/webfilewriter_impl.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 FileSystemDispatcher* dispatcher = 109 FileSystemDispatcher* dispatcher =
110 ChildThread::current()->file_system_dispatcher(); 110 ChildThread::current()->file_system_dispatcher();
111 dispatcher->ReadDirectory(GURL(path), 111 dispatcher->ReadDirectory(GURL(path),
112 new WebFileSystemCallbackDispatcher(callbacks)); 112 new WebFileSystemCallbackDispatcher(callbacks));
113 } 113 }
114 114
115 WebKit::WebFileWriter* WebFileSystemImpl::createFileWriter( 115 WebKit::WebFileWriter* WebFileSystemImpl::createFileWriter(
116 const WebURL& path, WebKit::WebFileWriterClient* client) { 116 const WebURL& path, WebKit::WebFileWriterClient* client) {
117 return new WebFileWriterImpl(GURL(path), client); 117 return new WebFileWriterImpl(GURL(path), client);
118 } 118 }
119
120 // These are temporary shims to link up the old calls to the new implementation.
121 // They'll go away as soon as the webkit side gets updated.
122 void WebFileSystemImpl::move(const WebString& src_path,
123 const WebString& dest_path,
124 WebFileSystemCallbacks* callbacks) {
125 move(GURL(src_path), GURL(dest_path), callbacks);
126 }
127
128 void WebFileSystemImpl::copy(const WebString& src_path,
129 const WebString& dest_path,
130 WebFileSystemCallbacks* callbacks) {
131 copy(GURL(src_path), GURL(dest_path), callbacks);
132 }
133
134 void WebFileSystemImpl::remove(const WebString& path,
135 WebFileSystemCallbacks* callbacks) {
136 remove(GURL(path), callbacks);
137 }
138
139 void WebFileSystemImpl::removeRecursively(const WebString& path,
140 WebFileSystemCallbacks* callbacks) {
141 removeRecursively(GURL(path), callbacks);
142 }
143
144 void WebFileSystemImpl::readMetadata(const WebString& path,
145 WebFileSystemCallbacks* callbacks) {
146 readMetadata(GURL(path), callbacks);
147 }
148
149 void WebFileSystemImpl::createFile(const WebString& path,
150 bool exclusive,
151 WebFileSystemCallbacks* callbacks) {
152 createFile(GURL(path), exclusive, callbacks);
153 }
154
155 void WebFileSystemImpl::createDirectory(const WebString& path,
156 bool exclusive,
157 WebFileSystemCallbacks* callbacks) {
158 createDirectory(GURL(path), exclusive, callbacks);
159 }
160
161 void WebFileSystemImpl::fileExists(const WebString& path,
162 WebFileSystemCallbacks* callbacks) {
163 fileExists(GURL(path), callbacks);
164 }
165
166 void WebFileSystemImpl::directoryExists(const WebString& path,
167 WebFileSystemCallbacks* callbacks) {
168 directoryExists(GURL(path), callbacks);
169 }
170
171 void WebFileSystemImpl::readDirectory(const WebString& path,
172 WebFileSystemCallbacks* callbacks) {
173 readDirectory(GURL(path), callbacks);
174 }
175
176 WebKit::WebFileWriter* WebFileSystemImpl::createFileWriter(
177 const WebString& path, WebKit::WebFileWriterClient* client) {
178 return createFileWriter(GURL(path), client);
179 }
OLDNEW
« no previous file with comments | « content/common/file_system/webfilesystem_impl.h ('k') | webkit/fileapi/file_system_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698