| OLD | NEW |
| 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 CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_NATIVE_MEDIA_FILE_UTIL_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_NATIVE_MEDIA_FILE_UTIL_H_ |
| 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_NATIVE_MEDIA_FILE_UTIL_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_NATIVE_MEDIA_FILE_UTIL_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "webkit/browser/fileapi/async_file_util.h" | 10 #include "webkit/browser/fileapi/async_file_util.h" |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 // If the media_path_filter() check fails, return |failure_error|. | 218 // If the media_path_filter() check fails, return |failure_error|. |
| 219 // If |local_file_path| is a directory, return File::FILE_OK. | 219 // If |local_file_path| is a directory, return File::FILE_OK. |
| 220 base::File::Error GetFilteredLocalFilePathForExistingFileOrDirectory( | 220 base::File::Error GetFilteredLocalFilePathForExistingFileOrDirectory( |
| 221 fileapi::FileSystemOperationContext* context, | 221 fileapi::FileSystemOperationContext* context, |
| 222 const fileapi::FileSystemURL& file_system_url, | 222 const fileapi::FileSystemURL& file_system_url, |
| 223 base::File::Error failure_error, | 223 base::File::Error failure_error, |
| 224 base::FilePath* local_file_path); | 224 base::FilePath* local_file_path); |
| 225 | 225 |
| 226 | 226 |
| 227 // Not owned, owned by the backend which owns this. | 227 // Not owned, owned by the backend which owns this. |
| 228 MediaPathFilter* media_path_filter_; | 228 MediaPathFilter* const media_path_filter_; |
| 229 | 229 |
| 230 base::WeakPtrFactory<NativeMediaFileUtil> weak_factory_; | 230 base::WeakPtrFactory<NativeMediaFileUtil> weak_factory_; |
| 231 | 231 |
| 232 DISALLOW_COPY_AND_ASSIGN(NativeMediaFileUtil); | 232 DISALLOW_COPY_AND_ASSIGN(NativeMediaFileUtil); |
| 233 }; | 233 }; |
| 234 | 234 |
| 235 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_NATIVE_MEDIA_FILE_UTIL_H_ | 235 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_NATIVE_MEDIA_FILE_UTIL_H_ |
| OLD | NEW |