OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "storage/browser/fileapi/obfuscated_file_util.h" | 5 #include "storage/browser/fileapi/obfuscated_file_util.h" |
6 | 6 |
7 #include <queue> | 7 #include <queue> |
8 #include <string> | |
9 #include <vector> | |
10 | 8 |
11 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
12 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
13 #include "base/logging.h" | 11 #include "base/logging.h" |
14 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
15 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
16 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
17 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
18 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
19 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
20 #include "base/strings/sys_string_conversions.h" | 18 #include "base/strings/sys_string_conversions.h" |
21 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
22 #include "base/time/time.h" | 20 #include "base/time/time.h" |
23 #include "storage/browser/fileapi/file_observers.h" | 21 #include "storage/browser/fileapi/file_observers.h" |
24 #include "storage/browser/fileapi/file_system_context.h" | 22 #include "storage/browser/fileapi/file_system_context.h" |
25 #include "storage/browser/fileapi/file_system_operation_context.h" | 23 #include "storage/browser/fileapi/file_system_operation_context.h" |
26 #include "storage/browser/fileapi/file_system_url.h" | |
27 #include "storage/browser/fileapi/native_file_util.h" | 24 #include "storage/browser/fileapi/native_file_util.h" |
28 #include "storage/browser/fileapi/sandbox_file_system_backend.h" | 25 #include "storage/browser/fileapi/sandbox_file_system_backend.h" |
29 #include "storage/browser/fileapi/sandbox_isolated_origin_database.h" | 26 #include "storage/browser/fileapi/sandbox_isolated_origin_database.h" |
30 #include "storage/browser/fileapi/sandbox_origin_database.h" | 27 #include "storage/browser/fileapi/sandbox_origin_database.h" |
31 #include "storage/browser/fileapi/sandbox_prioritized_origin_database.h" | 28 #include "storage/browser/fileapi/sandbox_prioritized_origin_database.h" |
32 #include "storage/browser/fileapi/timed_task_helper.h" | 29 #include "storage/browser/fileapi/timed_task_helper.h" |
33 #include "storage/browser/quota/quota_manager.h" | 30 #include "storage/browser/quota/quota_manager.h" |
34 #include "storage/common/database/database_identifier.h" | 31 #include "storage/common/database/database_identifier.h" |
35 #include "storage/common/fileapi/file_system_util.h" | 32 #include "storage/common/fileapi/file_system_util.h" |
36 #include "url/gurl.h" | 33 #include "url/gurl.h" |
(...skipping 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1416 } | 1413 } |
1417 return file.Pass(); | 1414 return file.Pass(); |
1418 } | 1415 } |
1419 | 1416 |
1420 bool ObfuscatedFileUtil::HasIsolatedStorage(const GURL& origin) { | 1417 bool ObfuscatedFileUtil::HasIsolatedStorage(const GURL& origin) { |
1421 return special_storage_policy_.get() && | 1418 return special_storage_policy_.get() && |
1422 special_storage_policy_->HasIsolatedStorage(origin); | 1419 special_storage_policy_->HasIsolatedStorage(origin); |
1423 } | 1420 } |
1424 | 1421 |
1425 } // namespace storage | 1422 } // namespace storage |
OLD | NEW |