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

Side by Side Diff: webkit/fileapi/media/native_media_file_util.cc

Issue 11747020: Cleanup: Remove using statements from webkit/fileapi header files. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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
« no previous file with comments | « webkit/fileapi/media/native_media_file_util.h ('k') | webkit/fileapi/native_file_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "webkit/fileapi/media/native_media_file_util.h" 5 #include "webkit/fileapi/media/native_media_file_util.h"
6 6
7 #include "net/base/mime_util.h"
8 #include "webkit/fileapi/file_system_operation_context.h" 7 #include "webkit/fileapi/file_system_operation_context.h"
9 #include "webkit/fileapi/media/media_path_filter.h" 8 #include "webkit/fileapi/media/media_path_filter.h"
10 #include "webkit/fileapi/media/filtering_file_enumerator.h" 9 #include "webkit/fileapi/media/filtering_file_enumerator.h"
11 10
11 using base::PlatformFile;
12 using base::PlatformFileError; 12 using base::PlatformFileError;
13 using base::PlatformFileInfo; 13 using base::PlatformFileInfo;
14 14
15 namespace fileapi { 15 namespace fileapi {
16 16
17 class MediaPathFilter;
18
19 NativeMediaFileUtil::NativeMediaFileUtil() { 17 NativeMediaFileUtil::NativeMediaFileUtil() {
20 } 18 }
21 19
22 PlatformFileError NativeMediaFileUtil::CreateOrOpen( 20 PlatformFileError NativeMediaFileUtil::CreateOrOpen(
23 FileSystemOperationContext* context, 21 FileSystemOperationContext* context,
24 const FileSystemURL& url, 22 const FileSystemURL& url,
25 int file_flags, 23 int file_flags,
26 PlatformFile* file_handle, 24 PlatformFile* file_handle,
27 bool* created) { 25 bool* created) {
28 // TODO(tzik): Apply context()->media_path_filter() here when we support write 26 // TODO(tzik): Apply context()->media_path_filter() here when we support write
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 if (error != base::PLATFORM_FILE_OK) 124 if (error != base::PLATFORM_FILE_OK)
127 return error; 125 return error;
128 126
129 if (file_info->is_directory || 127 if (file_info->is_directory ||
130 context->media_path_filter()->Match(*platform_path)) 128 context->media_path_filter()->Match(*platform_path))
131 return base::PLATFORM_FILE_OK; 129 return base::PLATFORM_FILE_OK;
132 return base::PLATFORM_FILE_ERROR_NOT_FOUND; 130 return base::PLATFORM_FILE_ERROR_NOT_FOUND;
133 } 131 }
134 132
135 } // namespace fileapi 133 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/media/native_media_file_util.h ('k') | webkit/fileapi/native_file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698