Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(740)

Side by Side Diff: chrome/browser/media_galleries/fileapi/picasa/picasa_file_util.cc

Issue 15511009: Picasa import: MediaFileSystemRegistry and misc. plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0021-picasa-import-add-picasa-finder-to-preferences
Patch Set: Restore changes and remove todo Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/media_galleries/media_file_system_registry.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/picasa_file_util.h" 5 #include "chrome/browser/media_galleries/fileapi/picasa/picasa_file_util.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "base/strings/sys_string_conversions.h" 10 #include "base/strings/sys_string_conversions.h"
(...skipping 21 matching lines...) Expand all
32 DirectorySkippingFileEnumerator( 32 DirectorySkippingFileEnumerator(
33 scoped_ptr<fileapi::FileSystemFileUtil::AbstractFileEnumerator> 33 scoped_ptr<fileapi::FileSystemFileUtil::AbstractFileEnumerator>
34 base_enumerator) 34 base_enumerator)
35 : base_enumerator_(base_enumerator.Pass()) { 35 : base_enumerator_(base_enumerator.Pass()) {
36 } 36 }
37 virtual ~DirectorySkippingFileEnumerator() {} 37 virtual ~DirectorySkippingFileEnumerator() {}
38 38
39 virtual base::FilePath Next() OVERRIDE { 39 virtual base::FilePath Next() OVERRIDE {
40 while (true) { 40 while (true) {
41 base::FilePath next = base_enumerator_->Next(); 41 base::FilePath next = base_enumerator_->Next();
42 if (next.empty() || !IsDirectory()) 42 if (next.empty() || !base_enumerator_->IsDirectory())
43 return next; 43 return next;
44 } 44 }
45 } 45 }
46 46
47 virtual int64 Size() OVERRIDE { 47 virtual int64 Size() OVERRIDE {
48 return base_enumerator_->Size(); 48 return base_enumerator_->Size();
49 } 49 }
50 50
51 virtual base::Time LastModifiedTime() OVERRIDE { 51 virtual base::Time LastModifiedTime() OVERRIDE {
52 return base_enumerator_->LastModifiedTime(); 52 return base_enumerator_->LastModifiedTime();
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 // intercepted by GetFileInfo()/CreateFileEnumerator(). Invalid cases 348 // intercepted by GetFileInfo()/CreateFileEnumerator(). Invalid cases
349 // return a NOT_FOUND error. 349 // return a NOT_FOUND error.
350 return base::PLATFORM_FILE_ERROR_NOT_FOUND; 350 return base::PLATFORM_FILE_ERROR_NOT_FOUND;
351 } 351 }
352 352
353 PicasaDataProvider* PicasaFileUtil::DataProvider() { 353 PicasaDataProvider* PicasaFileUtil::DataProvider() {
354 return chrome::ImportedMediaGalleryRegistry::picasa_data_provider(); 354 return chrome::ImportedMediaGalleryRegistry::picasa_data_provider();
355 } 355 }
356 356
357 } // namespace picasa 357 } // namespace picasa
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media_galleries/media_file_system_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698