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

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

Issue 10827157: Remove ScopedAllowIO from MediaPathFilter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | webkit/fileapi/media/media_path_filter.cc » ('j') | webkit/fileapi/media/media_path_filter.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
index 003e9797cd89b09400453dbe9574db1880cdf27b..b4b2202d5554529968c2fdbd38d1934499546633 100644
--- a/webkit/fileapi/media/media_path_filter.h
+++ b/webkit/fileapi/media/media_path_filter.h
@@ -8,6 +8,7 @@
#include <vector>
#include "base/file_path.h"
+#include "base/synchronization/lock.h"
#include "webkit/fileapi/fileapi_export.h"
class FilePath;
@@ -20,11 +21,15 @@ class FILEAPI_EXPORT MediaPathFilter {
public:
MediaPathFilter();
~MediaPathFilter();
- bool Match(const FilePath& path) const;
+ bool Match(const FilePath& path);
private:
typedef std::vector<FilePath::StringType> MediaFileExtensionList;
+ void EnsureInitialized();
+
+ bool initialized_;
+ base::Lock initialization_lock_;
MediaFileExtensionList media_file_extensions_;
DISALLOW_COPY_AND_ASSIGN(MediaPathFilter);
« no previous file with comments | « no previous file | webkit/fileapi/media/media_path_filter.cc » ('j') | webkit/fileapi/media/media_path_filter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698