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

Side by Side Diff: webkit/glue/webkitclient_impl.cc

Issue 159778: Make LocalStorage persistent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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 | « webkit/glue/webkitclient_impl.h ('k') | webkit/tools/test_shell/test_shell_webkit_init.h » ('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) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #include "webkit/glue/webkitclient_impl.h" 5 #include "webkit/glue/webkitclient_impl.h"
6 6
7 #include "base/file_path.h"
8 #include "base/file_util.h"
7 #include "base/message_loop.h" 9 #include "base/message_loop.h"
8 #include "base/platform_file.h" 10 #include "base/platform_file.h"
9 #include "base/stats_counters.h" 11 #include "base/stats_counters.h"
10 #include "base/string_util.h" 12 #include "base/string_util.h"
11 #include "base/trace_event.h" 13 #include "base/trace_event.h"
12 #include "grit/webkit_resources.h" 14 #include "grit/webkit_resources.h"
13 #include "grit/webkit_strings.h" 15 #include "grit/webkit_strings.h"
14 #include "webkit/api/public/WebData.h" 16 #include "webkit/api/public/WebData.h"
15 #include "webkit/api/public/WebPluginListBuilder.h" 17 #include "webkit/api/public/WebPluginListBuilder.h"
16 #include "webkit/api/public/WebString.h" 18 #include "webkit/api/public/WebString.h"
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 222
221 void WebKitClientImpl::stopSharedTimer() { 223 void WebKitClientImpl::stopSharedTimer() {
222 shared_timer_.Stop(); 224 shared_timer_.Stop();
223 } 225 }
224 226
225 void WebKitClientImpl::callOnMainThread(void (*func)()) { 227 void WebKitClientImpl::callOnMainThread(void (*func)()) {
226 main_loop_->PostTask(FROM_HERE, NewRunnableFunction(func)); 228 main_loop_->PostTask(FROM_HERE, NewRunnableFunction(func));
227 } 229 }
228 230
229 base::PlatformFile WebKitClientImpl::databaseOpenFile( 231 base::PlatformFile WebKitClientImpl::databaseOpenFile(
230 const WebKit::WebString& file_name, int desired_flags) { 232 const WebKit::WebString& file_name, int desired_flags) {
231 return base::kInvalidPlatformFileValue; 233 return base::kInvalidPlatformFileValue;
232 } 234 }
233 235
234 bool WebKitClientImpl::databaseDeleteFile( 236 bool WebKitClientImpl::databaseDeleteFile(
235 const WebKit::WebString& file_name) { 237 const WebKit::WebString& file_name) {
236 return false; 238 return false;
237 } 239 }
238 240
239 long WebKitClientImpl::databaseGetFileAttributes( 241 long WebKitClientImpl::databaseGetFileAttributes(
240 const WebKit::WebString& file_name) { 242 const WebKit::WebString& file_name) {
241 return 0; 243 return 0;
242 } 244 }
243 245
244 long long WebKitClientImpl::databaseGetFileSize( 246 long long WebKitClientImpl::databaseGetFileSize(
245 const WebKit::WebString& file_name) { 247 const WebKit::WebString& file_name) {
246 return 0; 248 return 0;
247 } 249 }
248 250
251 bool WebKitClientImpl::fileExists(const WebKit::WebString& path) {
252 NOTREACHED();
253 return false;
254 }
255
256 bool WebKitClientImpl::deleteFile(const WebKit::WebString& path) {
257 NOTREACHED();
258 return false;
259 }
260
261 bool WebKitClientImpl::deleteEmptyDirectory(const WebKit::WebString& path) {
262 NOTREACHED();
263 return false;
264 }
265
266 bool WebKitClientImpl::getFileSize(const WebKit::WebString& path,
267 long long& result) {
268 NOTREACHED();
269 return false;
270 }
271
272 bool WebKitClientImpl::getFileModificationTime(const WebKit::WebString& path,
273 time_t& result) {
274 NOTREACHED();
275 return false;
276 }
277
278 WebKit::WebString WebKitClientImpl::directoryName(
279 const WebKit::WebString& path) {
280 NOTREACHED();
281 return WebKit::WebString();
282 }
283
284 WebKit::WebString WebKitClientImpl::pathByAppendingComponent(
285 const WebKit::WebString& webkit_path,
286 const WebKit::WebString& webkit_component) {
287 FilePath path(webkit_glue::WebStringToFilePathString(webkit_path));
288 FilePath component(webkit_glue::WebStringToFilePathString(webkit_component));
289 FilePath combined_path = path.Append(component);
290 return webkit_glue::FilePathStringToWebString(combined_path.value());
291 }
292
293 bool WebKitClientImpl::makeAllDirectories(
294 const WebKit::WebString& path) {
295 DCHECK(!sandboxEnabled());
296 FilePath::StringType file_path = webkit_glue::WebStringToFilePathString(path);
297 return file_util::CreateDirectory(FilePath(file_path));
298 }
299
249 } // namespace webkit_glue 300 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/webkitclient_impl.h ('k') | webkit/tools/test_shell/test_shell_webkit_init.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698