| 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_file_util.h" | 5 #include "chrome/browser/media_galleries/fileapi/iphoto_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/file_util.h" | 12 #include "base/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/iphoto_data_provider.h" | 14 #include "chrome/browser/media_galleries/fileapi/iphoto_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 "webkit/browser/fileapi/file_system_file_util.h" | |
| 19 #include "webkit/browser/fileapi/file_system_operation_context.h" | 18 #include "webkit/browser/fileapi/file_system_operation_context.h" |
| 20 #include "webkit/browser/fileapi/file_system_url.h" | 19 #include "webkit/browser/fileapi/file_system_url.h" |
| 21 #include "webkit/browser/fileapi/native_file_util.h" | 20 #include "webkit/browser/fileapi/native_file_util.h" |
| 22 #include "webkit/common/blob/shareable_file_reference.h" | 21 #include "webkit/common/blob/shareable_file_reference.h" |
| 23 #include "webkit/common/fileapi/file_system_util.h" | 22 #include "webkit/common/fileapi/file_system_util.h" |
| 24 | 23 |
| 25 namespace iphoto { | 24 namespace iphoto { |
| 26 | 25 |
| 27 namespace { | 26 namespace { |
| 28 | 27 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 return base::PLATFORM_FILE_ERROR_NOT_FOUND; | 182 return base::PLATFORM_FILE_ERROR_NOT_FOUND; |
| 184 } | 183 } |
| 185 | 184 |
| 186 IPhotoDataProvider* IPhotoFileUtil::GetDataProvider() { | 185 IPhotoDataProvider* IPhotoFileUtil::GetDataProvider() { |
| 187 if (!imported_registry_) | 186 if (!imported_registry_) |
| 188 imported_registry_ = ImportedMediaGalleryRegistry::GetInstance(); | 187 imported_registry_ = ImportedMediaGalleryRegistry::GetInstance(); |
| 189 return imported_registry_->IPhotoDataProvider(); | 188 return imported_registry_->IPhotoDataProvider(); |
| 190 } | 189 } |
| 191 | 190 |
| 192 } // namespace iphoto | 191 } // namespace iphoto |
| OLD | NEW |