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 "chrome/browser/extensions/api/file_handlers/directory_util.h" | 5 #include "chrome/browser/extensions/api/file_handlers/directory_util.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
12 #include "net/base/filename_util.h" | 12 #include "net/base/filename_util.h" |
13 #include "storage/browser/fileapi/file_system_url.h" | 13 #include "storage/browser/fileapi/file_system_url.h" |
14 | 14 |
15 #if defined(OS_CHROMEOS) | 15 #if defined(OS_CHROMEOS) |
16 #include "chrome/browser/chromeos/file_manager/filesystem_api_util.h" | 16 #include "chrome/browser/chromeos/file_manager/filesystem_api_util.h" |
17 #endif | 17 #endif |
18 | 18 |
19 namespace extensions { | 19 namespace extensions { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 FROM_HERE, base::Bind(callback_, base::Passed(&result_))); | 98 FROM_HERE, base::Bind(callback_, base::Passed(&result_))); |
99 // Release the callback to avoid a circullar reference in case an instance | 99 // Release the callback to avoid a circullar reference in case an instance |
100 // of this class is a member of a ref counted class, which instance is bound | 100 // of this class is a member of a ref counted class, which instance is bound |
101 // to this callback. | 101 // to this callback. |
102 callback_ = CompletionCallback(); | 102 callback_ = CompletionCallback(); |
103 } | 103 } |
104 } | 104 } |
105 | 105 |
106 } // namespace app_file_handler_util | 106 } // namespace app_file_handler_util |
107 } // namespace extensions | 107 } // namespace extensions |
OLD | NEW |