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

Side by Side Diff: webkit/fileapi/dump_file_system.cc

Issue 15442002: Move FileAPI sandboxed filesystem related code from webkit/fileapi to webkit/browser/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 7 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 // A tool to dump HTML5 filesystem from CUI. 5 // A tool to dump HTML5 filesystem from CUI.
6 // 6 //
7 // Usage: 7 // Usage:
8 // 8 //
9 // ./out/Release/dump_file_system [options] <filesystem dir> [origin]... 9 // ./out/Release/dump_file_system [options] <filesystem dir> [origin]...
10 // 10 //
(...skipping 20 matching lines...) Expand all
31 31
32 #include <stack> 32 #include <stack>
33 #include <string> 33 #include <string>
34 #include <utility> 34 #include <utility>
35 #include <vector> 35 #include <vector>
36 36
37 #include "base/file_util.h" 37 #include "base/file_util.h"
38 #include "base/files/file_path.h" 38 #include "base/files/file_path.h"
39 #include "base/format_macros.h" 39 #include "base/format_macros.h"
40 #include "base/stringprintf.h" 40 #include "base/stringprintf.h"
41 #include "webkit/browser/fileapi/obfuscated_file_util.h"
42 #include "webkit/browser/fileapi/sandbox_directory_database.h"
43 #include "webkit/browser/fileapi/sandbox_mount_point_provider.h"
44 #include "webkit/browser/fileapi/sandbox_origin_database.h"
41 #include "webkit/fileapi/file_system_types.h" 45 #include "webkit/fileapi/file_system_types.h"
42 #include "webkit/fileapi/file_system_util.h" 46 #include "webkit/fileapi/file_system_util.h"
43 #include "webkit/fileapi/obfuscated_file_util.h"
44 #include "webkit/fileapi/sandbox_directory_database.h"
45 #include "webkit/fileapi/sandbox_mount_point_provider.h"
46 #include "webkit/fileapi/sandbox_origin_database.h"
47 47
48 namespace { 48 namespace {
49 49
50 bool g_opt_long; 50 bool g_opt_long;
51 fileapi::FileSystemType g_opt_fs_type = fileapi::kFileSystemTypePersistent; 51 fileapi::FileSystemType g_opt_fs_type = fileapi::kFileSystemTypePersistent;
52 52
53 void ShowMessageAndExit(const std::string& msg) { 53 void ShowMessageAndExit(const std::string& msg) {
54 fprintf(stderr, "%s\n", msg.c_str()); 54 fprintf(stderr, "%s\n", msg.c_str());
55 exit(EXIT_FAILURE); 55 exit(EXIT_FAILURE);
56 } 56 }
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 196
197 if (argc == 2) { 197 if (argc == 2) {
198 fileapi::DumpFileSystem(file_system_dir); 198 fileapi::DumpFileSystem(file_system_dir);
199 } else { 199 } else {
200 for (int i = 2; i < argc; i++) { 200 for (int i = 2; i < argc; i++) {
201 fileapi::DumpOrigin(file_system_dir, argv[i]); 201 fileapi::DumpOrigin(file_system_dir, argv[i]);
202 } 202 }
203 } 203 }
204 return 0; 204 return 0;
205 } 205 }
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/webkit_browser_fileapi.gypi ('k') | webkit/fileapi/file_system_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698