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

Side by Side Diff: webkit/fileapi/mock_file_system_context.h

Issue 15624003: Validate image files before writing them to media galleries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments and rebase 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) 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 #ifndef WEBKIT_FILEAPI_MOCK_FILE_SYSTEM_CONTEXT_H_ 5 #ifndef WEBKIT_FILEAPI_MOCK_FILE_SYSTEM_CONTEXT_H_
6 #define WEBKIT_FILEAPI_MOCK_FILE_SYSTEM_CONTEXT_H_ 6 #define WEBKIT_FILEAPI_MOCK_FILE_SYSTEM_CONTEXT_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/scoped_vector.h"
9 10
10 namespace quota { 11 namespace quota {
11 class QuotaManagerProxy; 12 class QuotaManagerProxy;
12 class SpecialStoragePolicy; 13 class SpecialStoragePolicy;
13 } 14 }
14 15
15 namespace fileapi { 16 namespace fileapi {
16 17
17 class FileSystemContext; 18 class FileSystemContext;
19 class FileSystemMountPointProvider;
18 20
19 FileSystemContext* CreateFileSystemContextForTesting( 21 FileSystemContext* CreateFileSystemContextForTesting(
20 quota::QuotaManagerProxy* quota_manager_proxy, 22 quota::QuotaManagerProxy* quota_manager_proxy,
21 const base::FilePath& base_path); 23 const base::FilePath& base_path);
22 24
25 // The caller is responsible for including TestMountPointProvider in
26 // |additiona_providers| if needed.
Lei Zhang 2013/05/24 22:50:44 typo
vandebo (ex-Chrome) 2013/05/29 06:09:15 Done.
27 FileSystemContext* CreateFileSystemContextWithAdditionalProvidersForTesting(
28 quota::QuotaManagerProxy* quota_manager_proxy,
29 ScopedVector<FileSystemMountPointProvider> additional_providers,
30 const base::FilePath& base_path);
31
23 } // namespace fileapi 32 } // namespace fileapi
24 33
25 #endif // WEBKIT_FILEAPI_MOCK_FILE_SYSTEM_CONTEXT_H_ 34 #endif // WEBKIT_FILEAPI_MOCK_FILE_SYSTEM_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698