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/iphoto_data_provider.h" | 5 #include "chrome/browser/media_galleries/fileapi/iphoto_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/location.h" | 11 #include "base/location.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/platform_file.h" | |
14 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
15 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
16 #include "base/threading/thread_restrictions.h" | 15 #include "base/threading/thread_restrictions.h" |
17 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" | 16 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" |
18 #include "chrome/browser/media_galleries/fileapi/safe_iapps_library_parser.h" | 17 #include "chrome/browser/media_galleries/fileapi/safe_iapps_library_parser.h" |
19 | 18 |
20 namespace iphoto { | 19 namespace iphoto { |
21 | 20 |
22 IPhotoDataProvider::IPhotoDataProvider(const base::FilePath& library_path) | 21 IPhotoDataProvider::IPhotoDataProvider(const base::FilePath& library_path) |
23 : iapps::IAppsDataProvider(library_path), | 22 : iapps::IAppsDataProvider(library_path), |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 DirIndex::const_iterator originals_it = originals_index_.find(album); | 176 DirIndex::const_iterator originals_it = originals_index_.find(album); |
178 if (originals_it == originals_index_.end()) | 177 if (originals_it == originals_index_.end()) |
179 return base::FilePath(); | 178 return base::FilePath(); |
180 FileIndex::const_iterator file_it = originals_it->second.find(filename); | 179 FileIndex::const_iterator file_it = originals_it->second.find(filename); |
181 if (file_it == originals_it->second.end()) | 180 if (file_it == originals_it->second.end()) |
182 return base::FilePath(); | 181 return base::FilePath(); |
183 return file_it->second; | 182 return file_it->second; |
184 } | 183 } |
185 | 184 |
186 } // namespace iphoto | 185 } // namespace iphoto |
OLD | NEW |