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/media_galleries/fileapi/itunes_file_util.h" | 5 #include "chrome/browser/media_galleries/fileapi/itunes_file_util.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "chrome/browser/media_galleries/fileapi/itunes_data_provider.h" | 14 #include "chrome/browser/media_galleries/fileapi/itunes_data_provider.h" |
15 #include "chrome/browser/media_galleries/fileapi/media_path_filter.h" | 15 #include "chrome/browser/media_galleries/fileapi/media_path_filter.h" |
16 #include "chrome/browser/media_galleries/imported_media_gallery_registry.h" | 16 #include "chrome/browser/media_galleries/imported_media_gallery_registry.h" |
17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
| 18 #include "storage/browser/blob/shareable_file_reference.h" |
18 #include "storage/browser/fileapi/file_system_operation_context.h" | 19 #include "storage/browser/fileapi/file_system_operation_context.h" |
19 #include "storage/browser/fileapi/file_system_url.h" | 20 #include "storage/browser/fileapi/file_system_url.h" |
20 #include "storage/browser/fileapi/native_file_util.h" | 21 #include "storage/browser/fileapi/native_file_util.h" |
21 #include "storage/common/blob/shareable_file_reference.h" | |
22 #include "storage/common/fileapi/file_system_util.h" | 22 #include "storage/common/fileapi/file_system_util.h" |
23 | 23 |
24 using storage::DirectoryEntry; | 24 using storage::DirectoryEntry; |
25 | 25 |
26 namespace itunes { | 26 namespace itunes { |
27 | 27 |
28 namespace { | 28 namespace { |
29 | 29 |
30 base::File::Error MakeDirectoryFileInfo(base::File::Info* file_info) { | 30 base::File::Error MakeDirectoryFileInfo(base::File::Info* file_info) { |
31 base::File::Info result; | 31 base::File::Info result; |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 callback); | 413 callback); |
414 } | 414 } |
415 | 415 |
416 ITunesDataProvider* ITunesFileUtil::GetDataProvider() { | 416 ITunesDataProvider* ITunesFileUtil::GetDataProvider() { |
417 if (!imported_registry_) | 417 if (!imported_registry_) |
418 imported_registry_ = ImportedMediaGalleryRegistry::GetInstance(); | 418 imported_registry_ = ImportedMediaGalleryRegistry::GetInstance(); |
419 return imported_registry_->ITunesDataProvider(); | 419 return imported_registry_->ITunesDataProvider(); |
420 } | 420 } |
421 | 421 |
422 } // namespace itunes | 422 } // namespace itunes |
OLD | NEW |