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

Side by Side Diff: webkit/fileapi/media/filtering_file_enumerator.h

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef WEBKIT_FILEAPI_MEDIA_FILTERING_FILE_ENUMERATOR_H_ 5 #ifndef WEBKIT_FILEAPI_MEDIA_FILTERING_FILE_ENUMERATOR_H_
6 #define WEBKIT_FILEAPI_MEDIA_FILTERING_FILE_ENUMERATOR_H_ 6 #define WEBKIT_FILEAPI_MEDIA_FILTERING_FILE_ENUMERATOR_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "webkit/fileapi/file_system_file_util.h" 9 #include "webkit/fileapi/file_system_file_util.h"
10 #include "webkit/fileapi/media/media_path_filter.h" 10 #include "webkit/fileapi/media/media_path_filter.h"
11 #include "webkit/storage/webkit_storage_export.h" 11 #include "webkit/storage/webkit_storage_export.h"
12 12
13 namespace fileapi { 13 namespace fileapi {
14 14
15 // This class wraps another file enumerator and filters out non-media files 15 // This class wraps another file enumerator and filters out non-media files
16 // from its result, refering given MediaPathFilter. 16 // from its result, refering given MediaPathFilter.
17 class WEBKIT_STORAGE_EXPORT FilteringFileEnumerator 17 class WEBKIT_STORAGE_EXPORT FilteringFileEnumerator
18 : public NON_EXPORTED_BASE(FileSystemFileUtil::AbstractFileEnumerator) { 18 : public NON_EXPORTED_BASE(FileSystemFileUtil::AbstractFileEnumerator) {
19 public: 19 public:
20 FilteringFileEnumerator( 20 FilteringFileEnumerator(
21 scoped_ptr<FileSystemFileUtil::AbstractFileEnumerator> base_enumerator, 21 scoped_ptr<FileSystemFileUtil::AbstractFileEnumerator> base_enumerator,
22 MediaPathFilter* filter); 22 MediaPathFilter* filter);
23 virtual ~FilteringFileEnumerator(); 23 virtual ~FilteringFileEnumerator();
24 24
25 virtual FilePath Next() OVERRIDE; 25 virtual base::FilePath Next() OVERRIDE;
26 virtual int64 Size() OVERRIDE; 26 virtual int64 Size() OVERRIDE;
27 virtual base::Time LastModifiedTime() OVERRIDE; 27 virtual base::Time LastModifiedTime() OVERRIDE;
28 virtual bool IsDirectory() OVERRIDE; 28 virtual bool IsDirectory() OVERRIDE;
29 29
30 private: 30 private:
31 // The file enumerator to be wrapped. 31 // The file enumerator to be wrapped.
32 scoped_ptr<FileSystemFileUtil::AbstractFileEnumerator> base_enumerator_; 32 scoped_ptr<FileSystemFileUtil::AbstractFileEnumerator> base_enumerator_;
33 33
34 // Path filter to filter out non-Media files. 34 // Path filter to filter out non-Media files.
35 MediaPathFilter* filter_; 35 MediaPathFilter* filter_;
36 }; 36 };
37 37
38 } // namespace fileapi 38 } // namespace fileapi
39 39
40 #endif // WEBKIT_FILEAPI_MEDIA_FILTERING_FILE_ENUMERATOR_H_ 40 #endif // WEBKIT_FILEAPI_MEDIA_FILTERING_FILE_ENUMERATOR_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/media/device_media_file_util.cc ('k') | webkit/fileapi/media/filtering_file_enumerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698