OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/filesystem/file_system_impl.h" | 5 #include "components/filesystem/file_system_impl.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/command_line.h" | 9 #include "base/command_line.h" |
8 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
9 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
10 #include "base/files/scoped_file.h" | 12 #include "base/files/scoped_file.h" |
11 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
12 #include "base/logging.h" | 14 #include "base/logging.h" |
13 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "build/build_config.h" |
14 #include "components/filesystem/directory_impl.h" | 17 #include "components/filesystem/directory_impl.h" |
15 #include "components/filesystem/file_system_app.h" | 18 #include "components/filesystem/file_system_app.h" |
16 #include "mojo/application/public/cpp/application_connection.h" | 19 #include "mojo/application/public/cpp/application_connection.h" |
17 #include "url/gurl.h" | 20 #include "url/gurl.h" |
18 | 21 |
19 #if defined(OS_WIN) | 22 #if defined(OS_WIN) |
20 #include "base/base_paths_win.h" | 23 #include "base/base_paths_win.h" |
21 #include "base/path_service.h" | 24 #include "base/path_service.h" |
22 #include "base/strings/utf_string_conversions.h" | 25 #include "base/strings/utf_string_conversions.h" |
23 #elif defined(OS_ANDROID) | 26 #elif defined(OS_ANDROID) |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 encoded[1] += (encoded[1] >= 10) ? 'A' - 10 : '0'; | 153 encoded[1] += (encoded[1] >= 10) ? 'A' - 10 : '0'; |
151 encoded[2] = ch % 16; | 154 encoded[2] = ch % 16; |
152 encoded[2] += (encoded[2] >= 10) ? 'A' - 10 : '0'; | 155 encoded[2] += (encoded[2] >= 10) ? 'A' - 10 : '0'; |
153 encoded_len = 3; | 156 encoded_len = 3; |
154 } | 157 } |
155 sanitized_origin->append(encoded, encoded_len); | 158 sanitized_origin->append(encoded, encoded_len); |
156 } | 159 } |
157 } | 160 } |
158 | 161 |
159 } // namespace filesystem | 162 } // namespace filesystem |
OLD | NEW |