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_data_provider.h" | 5 #include "chrome/browser/media_galleries/fileapi/itunes_data_provider.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/format_macros.h" | 11 #include "base/format_macros.h" |
12 #include "base/i18n/i18n_constants.h" | 12 #include "base/i18n/i18n_constants.h" |
13 #include "base/i18n/icu_string_conversions.h" | 13 #include "base/i18n/icu_string_conversions.h" |
14 #include "base/location.h" | 14 #include "base/location.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/platform_file.h" | |
17 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
18 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
19 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
20 #include "base/threading/thread_restrictions.h" | 19 #include "base/threading/thread_restrictions.h" |
21 #include "chrome/browser/media_galleries/fileapi/file_path_watcher_util.h" | 20 #include "chrome/browser/media_galleries/fileapi/file_path_watcher_util.h" |
22 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" | 21 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" |
23 #include "chrome/browser/media_galleries/imported_media_gallery_registry.h" | 22 #include "chrome/browser/media_galleries/imported_media_gallery_registry.h" |
24 #include "chrome/common/media_galleries/itunes_library.h" | 23 #include "chrome/common/media_galleries/itunes_library.h" |
25 #include "third_party/icu/source/common/unicode/locid.h" | 24 #include "third_party/icu/source/common/unicode/locid.h" |
26 #include "webkit/browser/fileapi/native_file_util.h" | 25 #include "webkit/browser/fileapi/native_file_util.h" |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 std::string album_name = SanitizeName(album_it->first); | 293 std::string album_name = SanitizeName(album_it->first); |
295 library_[artist_name][album_name] = | 294 library_[artist_name][album_name] = |
296 MakeUniqueTrackNames(album_it->second); | 295 MakeUniqueTrackNames(album_it->second); |
297 } | 296 } |
298 } | 297 } |
299 } | 298 } |
300 ready_callback.Run(valid()); | 299 ready_callback.Run(valid()); |
301 } | 300 } |
302 | 301 |
303 } // namespace itunes | 302 } // namespace itunes |
OLD | NEW |