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

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

Issue 273153003: Remove stray platform_file.h from chrome and components (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove "using" Created 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/media_file_validator_factory.h" 5 #include "chrome/browser/media_galleries/fileapi/media_file_validator_factory.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/platform_file.h"
9 #include "chrome/browser/media_galleries/fileapi/supported_audio_video_checker.h " 8 #include "chrome/browser/media_galleries/fileapi/supported_audio_video_checker.h "
10 #include "chrome/browser/media_galleries/fileapi/supported_image_type_validator. h" 9 #include "chrome/browser/media_galleries/fileapi/supported_image_type_validator. h"
11 #include "webkit/browser/fileapi/copy_or_move_file_validator.h" 10 #include "webkit/browser/fileapi/copy_or_move_file_validator.h"
12 #include "webkit/browser/fileapi/file_system_url.h" 11 #include "webkit/browser/fileapi/file_system_url.h"
13 12
14 namespace { 13 namespace {
15 14
16 class InvalidFileValidator : public fileapi::CopyOrMoveFileValidator { 15 class InvalidFileValidator : public fileapi::CopyOrMoveFileValidator {
17 public: 16 public:
18 virtual ~InvalidFileValidator() {} 17 virtual ~InvalidFileValidator() {}
(...skipping 28 matching lines...) Expand all
47 const fileapi::FileSystemURL& src, 46 const fileapi::FileSystemURL& src,
48 const base::FilePath& platform_path) { 47 const base::FilePath& platform_path) {
49 base::FilePath src_path = src.virtual_path(); 48 base::FilePath src_path = src.virtual_path();
50 if (SupportedImageTypeValidator::SupportsFileType(src_path)) 49 if (SupportedImageTypeValidator::SupportsFileType(src_path))
51 return new SupportedImageTypeValidator(platform_path); 50 return new SupportedImageTypeValidator(platform_path);
52 if (SupportedAudioVideoChecker::SupportsFileType(src_path)) 51 if (SupportedAudioVideoChecker::SupportsFileType(src_path))
53 return new SupportedAudioVideoChecker(platform_path); 52 return new SupportedAudioVideoChecker(platform_path);
54 53
55 return new InvalidFileValidator(); 54 return new InvalidFileValidator();
56 } 55 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698