| 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/picasa_file_util.h" | 5 #include "chrome/browser/media_galleries/fileapi/picasa_file_util.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 return PicasaDataProvider::ALBUMS_IMAGES_DATA; | 58 return PicasaDataProvider::ALBUMS_IMAGES_DATA; |
| 59 | 59 |
| 60 return PicasaDataProvider::LIST_OF_ALBUMS_AND_FOLDERS_DATA; | 60 return PicasaDataProvider::LIST_OF_ALBUMS_AND_FOLDERS_DATA; |
| 61 } | 61 } |
| 62 | 62 |
| 63 } // namespace | 63 } // namespace |
| 64 | 64 |
| 65 const char kPicasaDirAlbums[] = "albums"; | 65 const char kPicasaDirAlbums[] = "albums"; |
| 66 const char kPicasaDirFolders[] = "folders"; | 66 const char kPicasaDirFolders[] = "folders"; |
| 67 | 67 |
| 68 PicasaFileUtil::PicasaFileUtil(chrome::MediaPathFilter* media_path_filter) | 68 PicasaFileUtil::PicasaFileUtil(MediaPathFilter* media_path_filter) |
| 69 : chrome::NativeMediaFileUtil(media_path_filter), | 69 : NativeMediaFileUtil(media_path_filter), |
| 70 weak_factory_(this) { | 70 weak_factory_(this) { |
| 71 } | 71 } |
| 72 | 72 |
| 73 PicasaFileUtil::~PicasaFileUtil() {} | 73 PicasaFileUtil::~PicasaFileUtil() {} |
| 74 | 74 |
| 75 void PicasaFileUtil::GetFileInfoOnTaskRunnerThread( | 75 void PicasaFileUtil::GetFileInfoOnTaskRunnerThread( |
| 76 scoped_ptr<fileapi::FileSystemOperationContext> context, | 76 scoped_ptr<fileapi::FileSystemOperationContext> context, |
| 77 const fileapi::FileSystemURL& url, | 77 const fileapi::FileSystemURL& url, |
| 78 const GetFileInfoCallback& callback) { | 78 const GetFileInfoCallback& callback) { |
| 79 GetDataProvider()->RefreshData( | 79 GetDataProvider()->RefreshData( |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 content::BrowserThread::IO, | 360 content::BrowserThread::IO, |
| 361 FROM_HERE, | 361 FROM_HERE, |
| 362 base::Bind(callback, base::PLATFORM_FILE_ERROR_IO, EntryList(), false)); | 362 base::Bind(callback, base::PLATFORM_FILE_ERROR_IO, EntryList(), false)); |
| 363 return; | 363 return; |
| 364 } | 364 } |
| 365 NativeMediaFileUtil::ReadDirectoryOnTaskRunnerThread( | 365 NativeMediaFileUtil::ReadDirectoryOnTaskRunnerThread( |
| 366 context.Pass(), url, callback); | 366 context.Pass(), url, callback); |
| 367 } | 367 } |
| 368 | 368 |
| 369 PicasaDataProvider* PicasaFileUtil::GetDataProvider() { | 369 PicasaDataProvider* PicasaFileUtil::GetDataProvider() { |
| 370 return chrome::ImportedMediaGalleryRegistry::PicasaDataProvider(); | 370 return ImportedMediaGalleryRegistry::PicasaDataProvider(); |
| 371 } | 371 } |
| 372 | 372 |
| 373 } // namespace picasa | 373 } // namespace picasa |
| OLD | NEW |