| OLD | NEW |
| 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 16 matching lines...) Expand all Loading... |
| 27 // | 27 // |
| 28 | 28 |
| 29 #include <stdio.h> | 29 #include <stdio.h> |
| 30 #include <stdlib.h> | 30 #include <stdlib.h> |
| 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" | |
| 38 #include "base/files/file_path.h" | 37 #include "base/files/file_path.h" |
| 38 #include "base/files/file_util.h" |
| 39 #include "base/format_macros.h" | 39 #include "base/format_macros.h" |
| 40 #include "base/strings/stringprintf.h" | 40 #include "base/strings/stringprintf.h" |
| 41 #include "webkit/browser/fileapi/obfuscated_file_util.h" | 41 #include "webkit/browser/fileapi/obfuscated_file_util.h" |
| 42 #include "webkit/browser/fileapi/sandbox_directory_database.h" | 42 #include "webkit/browser/fileapi/sandbox_directory_database.h" |
| 43 #include "webkit/browser/fileapi/sandbox_file_system_backend.h" | 43 #include "webkit/browser/fileapi/sandbox_file_system_backend.h" |
| 44 #include "webkit/browser/fileapi/sandbox_origin_database.h" | 44 #include "webkit/browser/fileapi/sandbox_origin_database.h" |
| 45 #include "webkit/common/fileapi/file_system_types.h" | 45 #include "webkit/common/fileapi/file_system_types.h" |
| 46 #include "webkit/common/fileapi/file_system_util.h" | 46 #include "webkit/common/fileapi/file_system_util.h" |
| 47 | 47 |
| 48 namespace { | 48 namespace { |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 195 |
| 196 if (argc == 2) { | 196 if (argc == 2) { |
| 197 storage::DumpFileSystem(file_system_dir); | 197 storage::DumpFileSystem(file_system_dir); |
| 198 } else { | 198 } else { |
| 199 for (int i = 2; i < argc; i++) { | 199 for (int i = 2; i < argc; i++) { |
| 200 storage::DumpOrigin(file_system_dir, argv[i]); | 200 storage::DumpOrigin(file_system_dir, argv[i]); |
| 201 } | 201 } |
| 202 } | 202 } |
| 203 return 0; | 203 return 0; |
| 204 } | 204 } |
| OLD | NEW |