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

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

Issue 3567012: Support removeRecursively and new copy/move behaviors for FileSystem API (Closed)
Patch Set: '' Created 10 years, 2 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
OLDNEW
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 "webkit/glue/webkit_glue.h" 5 #include "webkit/glue/webkit_glue.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <objidl.h> 8 #include <objidl.h>
9 #include <mlang.h> 9 #include <mlang.h>
10 #elif defined(OS_POSIX) && !defined(OS_MACOSX) 10 #elif defined(OS_POSIX) && !defined(OS_MACOSX)
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 } 314 }
315 315
316 WebKit::WebFileError PlatformFileErrorToWebFileError( 316 WebKit::WebFileError PlatformFileErrorToWebFileError(
317 base::PlatformFileError error_code) { 317 base::PlatformFileError error_code) {
318 switch (error_code) { 318 switch (error_code) {
319 case base::PLATFORM_FILE_ERROR_NOT_FOUND: 319 case base::PLATFORM_FILE_ERROR_NOT_FOUND:
320 return WebKit::WebFileErrorNotFound; 320 return WebKit::WebFileErrorNotFound;
321 case base::PLATFORM_FILE_ERROR_INVALID_OPERATION: 321 case base::PLATFORM_FILE_ERROR_INVALID_OPERATION:
322 case base::PLATFORM_FILE_ERROR_EXISTS: 322 case base::PLATFORM_FILE_ERROR_EXISTS:
323 case base::PLATFORM_FILE_ERROR_NOT_A_DIRECTORY: 323 case base::PLATFORM_FILE_ERROR_NOT_A_DIRECTORY:
324 case base::PLATFORM_FILE_ERROR_NOT_A_FILE:
325 case base::PLATFORM_FILE_ERROR_NOT_EMPTY:
324 return WebKit::WebFileErrorInvalidModification; 326 return WebKit::WebFileErrorInvalidModification;
325 case base::PLATFORM_FILE_ERROR_ACCESS_DENIED: 327 case base::PLATFORM_FILE_ERROR_ACCESS_DENIED:
326 return WebKit::WebFileErrorNoModificationAllowed; 328 return WebKit::WebFileErrorNoModificationAllowed;
327 case base::PLATFORM_FILE_ERROR_FAILED: 329 case base::PLATFORM_FILE_ERROR_FAILED:
328 return WebKit::WebFileErrorInvalidState; 330 return WebKit::WebFileErrorInvalidState;
329 case base::PLATFORM_FILE_ERROR_ABORT: 331 case base::PLATFORM_FILE_ERROR_ABORT:
330 return WebKit::WebFileErrorAbort; 332 return WebKit::WebFileErrorAbort;
331 default: 333 default:
332 return WebKit::WebFileErrorInvalidModification; 334 return WebKit::WebFileErrorInvalidModification;
333 } 335 }
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 422
421 bool IsMediaCacheEnabled() { 423 bool IsMediaCacheEnabled() {
422 return g_enable_media_cache; 424 return g_enable_media_cache;
423 } 425 }
424 426
425 void SetMediaCacheEnabled(bool enabled) { 427 void SetMediaCacheEnabled(bool enabled) {
426 g_enable_media_cache = enabled; 428 g_enable_media_cache = enabled;
427 } 429 }
428 430
429 } // namespace webkit_glue 431 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_operation_unittest.cc ('k') | webkit/tools/test_shell/simple_file_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698