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

Unified Diff: webkit/fileapi/media/media_path_filter.h

Issue 10825042: Implement media path filter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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: webkit/fileapi/media/media_path_filter.h
diff --git a/webkit/fileapi/media/media_path_filter.h b/webkit/fileapi/media/media_path_filter.h
new file mode 100644
index 0000000000000000000000000000000000000000..093b119325bebf20c46b6b0cd548177de1325f4a
--- /dev/null
+++ b/webkit/fileapi/media/media_path_filter.h
@@ -0,0 +1,33 @@
+// 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 WEBKIT_FILEAPI_MEDIA_MEDIA_PATH_FILTER_H_
+#define WEBKIT_FILEAPI_MEDIA_MEDIA_PATH_FILTER_H_
+
+#include <vector>
+
+#include "base/file_path.h"
+#include "webkit/fileapi/fileapi_export.h"
+
+class FilePath;
+
+namespace fileapi {
+
+// This class holds mime type patterns.
+class FILEAPI_EXPORT MediaPathFilter {
+ public:
+ typedef std::vector<FilePath::StringType> MediaFileExtensionList;
+
+ MediaPathFilter();
+ bool Match(const FilePath& path) const;
+
+ private:
+ MediaFileExtensionList media_file_extensions_;
+
+ DISALLOW_COPY_AND_ASSIGN(MediaPathFilter);
+};
+
+} // namespace fileapi
+
+#endif // WEBKIT_FILEAPI_MEDIA_MEDIA_PATH_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698