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

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

Issue 251723004: No media-file validation mode for DeviceMediaAsyncUtil. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review #2 Created 6 years, 8 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_system_backend.h" 5 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 MediaFileSystemBackend::MediaFileSystemBackend( 120 MediaFileSystemBackend::MediaFileSystemBackend(
121 const base::FilePath& profile_path, 121 const base::FilePath& profile_path,
122 base::SequencedTaskRunner* media_task_runner) 122 base::SequencedTaskRunner* media_task_runner)
123 : profile_path_(profile_path), 123 : profile_path_(profile_path),
124 media_task_runner_(media_task_runner), 124 media_task_runner_(media_task_runner),
125 media_path_filter_(new MediaPathFilter), 125 media_path_filter_(new MediaPathFilter),
126 media_copy_or_move_file_validator_factory_(new MediaFileValidatorFactory), 126 media_copy_or_move_file_validator_factory_(new MediaFileValidatorFactory),
127 native_media_file_util_( 127 native_media_file_util_(
128 new NativeMediaFileUtil(media_path_filter_.get())), 128 new NativeMediaFileUtil(media_path_filter_.get())),
129 device_media_async_file_util_( 129 device_media_async_file_util_(
130 DeviceMediaAsyncFileUtil::Create(profile_path_)) 130 DeviceMediaAsyncFileUtil::Create(profile_path_,
131 APPLY_MEDIA_FILE_VALIDATION))
131 #if defined(OS_WIN) || defined(OS_MACOSX) 132 #if defined(OS_WIN) || defined(OS_MACOSX)
132 , 133 ,
133 picasa_file_util_(new picasa::PicasaFileUtil(media_path_filter_.get())), 134 picasa_file_util_(new picasa::PicasaFileUtil(media_path_filter_.get())),
134 itunes_file_util_(new itunes::ITunesFileUtil(media_path_filter_.get())) 135 itunes_file_util_(new itunes::ITunesFileUtil(media_path_filter_.get()))
135 #endif // defined(OS_WIN) || defined(OS_MACOSX) 136 #endif // defined(OS_WIN) || defined(OS_MACOSX)
136 #if defined(OS_MACOSX) 137 #if defined(OS_MACOSX)
137 , 138 ,
138 iphoto_file_util_(new iphoto::IPhotoFileUtil(media_path_filter_.get())) 139 iphoto_file_util_(new iphoto::IPhotoFileUtil(media_path_filter_.get()))
139 #endif // defined(OS_MACOSX) 140 #endif // defined(OS_MACOSX)
140 { 141 {
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 url.path(), 346 url.path(),
346 offset, 347 offset,
347 fileapi::FileStreamWriter::OPEN_EXISTING_FILE)); 348 fileapi::FileStreamWriter::OPEN_EXISTING_FILE));
348 } 349 }
349 350
350 fileapi::FileSystemQuotaUtil* 351 fileapi::FileSystemQuotaUtil*
351 MediaFileSystemBackend::GetQuotaUtil() { 352 MediaFileSystemBackend::GetQuotaUtil() {
352 // No quota support. 353 // No quota support.
353 return NULL; 354 return NULL;
354 } 355 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698