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: content/public/test/test_file_system_context.h

Issue 195923002: Add mechanism to auto mount file systems in response to a URL request. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix CrOS Created 6 years, 9 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 #ifndef CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_CONTEXT_H_ 5 #ifndef CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_CONTEXT_H_
6 #define CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_CONTEXT_H_ 6 #define CONTENT_PUBLIC_TEST_TEST_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 #include "base/memory/scoped_vector.h"
10 #include "webkit/browser/fileapi/file_system_context.h"
10 11
11 namespace quota { 12 namespace quota {
12 class QuotaManagerProxy; 13 class QuotaManagerProxy;
13 class SpecialStoragePolicy; 14 class SpecialStoragePolicy;
14 } 15 }
15 16
16 namespace fileapi { 17 namespace fileapi {
17 class FileSystemContext;
18 class FileSystemBackend; 18 class FileSystemBackend;
19 } 19 }
20 20
21 namespace content { 21 namespace content {
22 22
23 fileapi::FileSystemContext* CreateFileSystemContextForTesting( 23 fileapi::FileSystemContext* CreateFileSystemContextForTesting(
24 quota::QuotaManagerProxy* quota_manager_proxy, 24 quota::QuotaManagerProxy* quota_manager_proxy,
25 const base::FilePath& base_path); 25 const base::FilePath& base_path);
26 26
27 // The caller is responsible for including TestFileSystemBackend in 27 // The caller is responsible for including TestFileSystemBackend in
28 // |additional_providers| if needed. 28 // |additional_providers| if needed.
29 fileapi::FileSystemContext* 29 fileapi::FileSystemContext*
30 CreateFileSystemContextWithAdditionalProvidersForTesting( 30 CreateFileSystemContextWithAdditionalProvidersForTesting(
31 quota::QuotaManagerProxy* quota_manager_proxy, 31 quota::QuotaManagerProxy* quota_manager_proxy,
32 ScopedVector<fileapi::FileSystemBackend> additional_providers, 32 ScopedVector<fileapi::FileSystemBackend> additional_providers,
33 const base::FilePath& base_path); 33 const base::FilePath& base_path);
34 34
35 fileapi::FileSystemContext*
36 CreateFileSystemContextWithAutoMountersForTesting(
37 quota::QuotaManagerProxy* quota_manager_proxy,
38 ScopedVector<fileapi::FileSystemBackend> additional_providers,
39 const std::vector<fileapi::URLRequestAutoMountHandler>& auto_mounters,
40 const base::FilePath& base_path);
41
35 fileapi::FileSystemContext* CreateIncognitoFileSystemContextForTesting( 42 fileapi::FileSystemContext* CreateIncognitoFileSystemContextForTesting(
36 quota::QuotaManagerProxy* quota_manager_proxy, 43 quota::QuotaManagerProxy* quota_manager_proxy,
37 const base::FilePath& base_path); 44 const base::FilePath& base_path);
38 45
39 } // namespace content 46 } // namespace content
40 47
41 #endif // CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_CONTEXT_H_ 48 #endif // CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/public/test/test_file_system_backend.cc ('k') | content/public/test/test_file_system_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698