OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "chrome/browser/extensions/api/file_handlers/mime_util.h" | 5 #include "chrome/browser/extensions/api/file_handlers/mime_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 "build/build_config.h" | 10 #include "build/build_config.h" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
13 #include "net/base/filename_util.h" | 13 #include "net/base/filename_util.h" |
14 #include "net/base/mime_sniffer.h" | 14 #include "net/base/mime_sniffer.h" |
15 #include "net/base/mime_util.h" | 15 #include "net/base/mime_util.h" |
16 #include "storage/browser/fileapi/file_system_url.h" | 16 #include "storage/browser/fileapi/file_system_url.h" |
17 | 17 |
18 #if defined(OS_CHROMEOS) | 18 #if defined(OS_CHROMEOS) |
19 #include "chrome/browser/chromeos/file_manager/filesystem_api_util.h" | 19 #include "chrome/browser/chromeos/file_manager/filesystem_api_util.h" |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 FROM_HERE, base::Bind(callback_, base::Passed(&result_))); | 216 FROM_HERE, base::Bind(callback_, base::Passed(&result_))); |
217 // Release the callback to avoid a circullar reference in case an instance | 217 // Release the callback to avoid a circullar reference in case an instance |
218 // of this class is a member of a ref counted class, which instance is bound | 218 // of this class is a member of a ref counted class, which instance is bound |
219 // to this callback. | 219 // to this callback. |
220 callback_ = CompletionCallback(); | 220 callback_ = CompletionCallback(); |
221 } | 221 } |
222 } | 222 } |
223 | 223 |
224 } // namespace app_file_handler_util | 224 } // namespace app_file_handler_util |
225 } // namespace extensions | 225 } // namespace extensions |
OLD | NEW |