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 "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/format_macros.h" | 8 #include "base/format_macros.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
12 #include "base/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "base/threading/thread_restrictions.h" | 13 #include "base/threading/thread_restrictions.h" |
14 #include "chrome/browser/media_galleries/fileapi/itunes_library_parser.h" | 14 #include "chrome/browser/media_galleries/fileapi/itunes_library_parser.h" |
15 | 15 |
16 namespace itunes { | 16 namespace itunes { |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 // A "reasonable" artificial limit. | 20 // A "reasonable" artificial limit. |
21 // TODO(vandebo): Add a UMA to figure out what common values are. | 21 // TODO(vandebo): Add a UMA to figure out what common values are. |
22 const int64 kMaxLibraryFileSize = 150 * 1024 * 1024; | 22 const int64 kMaxLibraryFileSize = 150 * 1024 * 1024; |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 for (album_it = artist_it->second.begin(); | 200 for (album_it = artist_it->second.begin(); |
201 album_it != artist_it->second.end(); | 201 album_it != artist_it->second.end(); |
202 ++album_it) { | 202 ++album_it) { |
203 library_[artist_it->first][album_it->first] = | 203 library_[artist_it->first][album_it->first] = |
204 MakeUniqueTrackNames(album_it->second); | 204 MakeUniqueTrackNames(album_it->second); |
205 } | 205 } |
206 } | 206 } |
207 } | 207 } |
208 | 208 |
209 } // namespace itunes | 209 } // namespace itunes |
OLD | NEW |