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

Side by Side Diff: chrome/browser/media_galleries/fileapi/native_media_file_util.cc

Issue 14895013: Move webkit/fileapi/file_system_mount_point_provider.h to webkit/browser/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 #include "chrome/browser/media_galleries/fileapi/native_media_file_util.h" 5 #include "chrome/browser/media_galleries/fileapi/native_media_file_util.h"
6 6
7 #include "base/memory/scoped_generic_obj.h" 7 #include "base/memory/scoped_generic_obj.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "chrome/browser/media_galleries/fileapi/filtering_file_enumerator.h" 9 #include "chrome/browser/media_galleries/fileapi/filtering_file_enumerator.h"
10 #include "chrome/browser/media_galleries/fileapi/media_file_system_mount_point_p rovider.h" 10 #include "chrome/browser/media_galleries/fileapi/media_file_system_mount_point_p rovider.h"
11 #include "chrome/browser/media_galleries/fileapi/media_path_filter.h" 11 #include "chrome/browser/media_galleries/fileapi/media_path_filter.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "net/base/mime_sniffer.h" 13 #include "net/base/mime_sniffer.h"
14 #include "webkit/fileapi/file_system_context.h" 14 #include "webkit/browser/fileapi/file_system_context.h"
15 #include "webkit/fileapi/file_system_operation_context.h" 15 #include "webkit/browser/fileapi/file_system_operation_context.h"
16 #include "webkit/fileapi/file_system_task_runners.h" 16 #include "webkit/browser/fileapi/file_system_task_runners.h"
17 #include "webkit/fileapi/native_file_util.h" 17 #include "webkit/browser/fileapi/native_file_util.h"
18 18
19 using base::PlatformFile; 19 using base::PlatformFile;
20 using base::PlatformFileError; 20 using base::PlatformFileError;
21 using base::PlatformFileInfo; 21 using base::PlatformFileInfo;
22 using fileapi::FileSystemOperationContext; 22 using fileapi::FileSystemOperationContext;
23 using fileapi::FileSystemURL; 23 using fileapi::FileSystemURL;
24 using fileapi::NativeFileUtil; 24 using fileapi::NativeFileUtil;
25 25
26 namespace chrome { 26 namespace chrome {
27 27
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 StartsWithASCII(mime_type, "audio/", true) || 300 StartsWithASCII(mime_type, "audio/", true) ||
301 StartsWithASCII(mime_type, "video/", true) || 301 StartsWithASCII(mime_type, "video/", true) ||
302 mime_type == "application/x-shockwave-flash") { 302 mime_type == "application/x-shockwave-flash") {
303 *error = base::PLATFORM_FILE_OK; 303 *error = base::PLATFORM_FILE_OK;
304 } else { 304 } else {
305 *error = base::PLATFORM_FILE_ERROR_SECURITY; 305 *error = base::PLATFORM_FILE_ERROR_SECURITY;
306 } 306 }
307 } 307 }
308 308
309 } // namespace chrome 309 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698