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

Unified Diff: chrome/browser/media_galleries/fileapi/filtering_file_enumerator.h

Issue 16304002: Make NativeMediaFileUtil an AsyncFileUtil (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Remove debug statement Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media_galleries/fileapi/filtering_file_enumerator.h
diff --git a/chrome/browser/media_galleries/fileapi/filtering_file_enumerator.h b/chrome/browser/media_galleries/fileapi/filtering_file_enumerator.h
deleted file mode 100644
index 3a51963bc4776c579d0036045d98c46afd6ae75f..0000000000000000000000000000000000000000
--- a/chrome/browser/media_galleries/fileapi/filtering_file_enumerator.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_FILTERING_FILE_ENUMERATOR_H_
-#define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_FILTERING_FILE_ENUMERATOR_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "chrome/browser/media_galleries/fileapi/media_path_filter.h"
-#include "webkit/browser/fileapi/file_system_file_util.h"
-
-namespace chrome {
-
-// This class wraps another file enumerator and filters out non-media files
-// from its result, refering given MediaPathFilter.
-class FilteringFileEnumerator
- : public fileapi::FileSystemFileUtil::AbstractFileEnumerator {
- public:
- FilteringFileEnumerator(
- scoped_ptr<fileapi::FileSystemFileUtil::AbstractFileEnumerator>
- base_enumerator,
- MediaPathFilter* filter);
- virtual ~FilteringFileEnumerator();
-
- virtual base::FilePath Next() OVERRIDE;
- virtual int64 Size() OVERRIDE;
- virtual base::Time LastModifiedTime() OVERRIDE;
- virtual bool IsDirectory() OVERRIDE;
-
- private:
- // The file enumerator to be wrapped.
- scoped_ptr<fileapi::FileSystemFileUtil::AbstractFileEnumerator>
- base_enumerator_;
-
- // Path filter to filter out non-Media files.
- MediaPathFilter* filter_;
-};
-
-} // namespace chrome
-
-#endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_FILTERING_FILE_ENUMERATOR_H_

Powered by Google App Engine
This is Rietveld 408576698