Make sure webrtc::VideoSourceInterface is released on the main render thread.
[chromium-blink-merge.git] / content / public / test / test_file_system_context.h
blob8b7c872b87e7999f41028365fa4c2be0fda58670
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_CONTEXT_H_
6 #define CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_CONTEXT_H_
8 #include "base/files/file_path.h"
9 #include "base/memory/scoped_vector.h"
10 #include "webkit/browser/fileapi/file_system_context.h"
12 namespace quota {
13 class QuotaManagerProxy;
14 class SpecialStoragePolicy;
17 namespace fileapi {
18 class FileSystemBackend;
21 namespace content {
23 fileapi::FileSystemContext* CreateFileSystemContextForTesting(
24 quota::QuotaManagerProxy* quota_manager_proxy,
25 const base::FilePath& base_path);
27 // The caller is responsible for including TestFileSystemBackend in
28 // |additional_providers| if needed.
29 fileapi::FileSystemContext*
30 CreateFileSystemContextWithAdditionalProvidersForTesting(
31 quota::QuotaManagerProxy* quota_manager_proxy,
32 ScopedVector<fileapi::FileSystemBackend> additional_providers,
33 const base::FilePath& base_path);
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);
42 fileapi::FileSystemContext* CreateIncognitoFileSystemContextForTesting(
43 quota::QuotaManagerProxy* quota_manager_proxy,
44 const base::FilePath& base_path);
46 } // namespace content
48 #endif // CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_CONTEXT_H_