OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "content/browser/plugin_private_storage_helper.h" | 5 #include "content/browser/plugin_private_storage_helper.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <set> | 11 #include <set> |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "base/bind.h" | 14 #include "base/bind.h" |
15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
16 #include "base/files/file.h" | 16 #include "base/files/file.h" |
17 #include "base/files/file_enumerator.h" | 17 #include "base/files/file_enumerator.h" |
18 #include "base/files/file_path.h" | 18 #include "base/files/file_path.h" |
19 #include "base/location.h" | 19 #include "base/location.h" |
20 #include "base/logging.h" | 20 #include "base/logging.h" |
| 21 #include "base/memory/ptr_util.h" |
21 #include "base/stl_util.h" | 22 #include "base/stl_util.h" |
22 #include "base/strings/utf_string_conversions.h" | 23 #include "base/strings/utf_string_conversions.h" |
23 #include "content/public/browser/browser_thread.h" | 24 #include "content/public/browser/browser_thread.h" |
24 #include "ppapi/shared_impl/ppapi_constants.h" | 25 #include "ppapi/shared_impl/ppapi_constants.h" |
25 #include "storage/browser/fileapi/async_file_util.h" | 26 #include "storage/browser/fileapi/async_file_util.h" |
26 #include "storage/browser/fileapi/async_file_util_adapter.h" | 27 #include "storage/browser/fileapi/async_file_util_adapter.h" |
27 #include "storage/browser/fileapi/file_system_context.h" | 28 #include "storage/browser/fileapi/file_system_context.h" |
28 #include "storage/browser/fileapi/isolated_context.h" | 29 #include "storage/browser/fileapi/isolated_context.h" |
29 #include "storage/browser/fileapi/obfuscated_file_util.h" | 30 #include "storage/browser/fileapi/obfuscated_file_util.h" |
30 #include "storage/common/fileapi/file_system_util.h" | 31 #include "storage/common/fileapi/file_system_util.h" |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 origins.insert(storage_origin); | 407 origins.insert(storage_origin); |
407 } | 408 } |
408 | 409 |
409 PluginPrivateDataDeletionHelper* helper = new PluginPrivateDataDeletionHelper( | 410 PluginPrivateDataDeletionHelper* helper = new PluginPrivateDataDeletionHelper( |
410 std::move(filesystem_context), begin, end, callback); | 411 std::move(filesystem_context), begin, end, callback); |
411 helper->CheckOriginsOnFileTaskRunner(origins); | 412 helper->CheckOriginsOnFileTaskRunner(origins); |
412 // |helper| will delete itself when all origins have been checked. | 413 // |helper| will delete itself when all origins have been checked. |
413 } | 414 } |
414 | 415 |
415 } // namespace content | 416 } // namespace content |
OLD | NEW |