Ignore title parameter for navigator.registerProtocolHandler
[chromium-blink-merge.git] / content / browser / fileapi / browser_file_system_helper.h
blobad44ced5064a9574a4f621b9948b52d1b85bb462
1 // Copyright (c) 2012 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_BROWSER_FILEAPI_BROWSER_FILE_SYSTEM_HELPER_H_
6 #define CONTENT_BROWSER_FILEAPI_BROWSER_FILE_SYSTEM_HELPER_H_
8 #include "base/memory/ref_counted.h"
9 #include "content/common/content_export.h"
10 #include "webkit/browser/fileapi/file_system_context.h"
12 namespace fileapi {
13 class ExternalMountPoints;
14 class FileSystemContext;
15 class FileSystemURL;
18 namespace content {
20 class BrowserContext;
22 // Helper method that returns FileSystemContext constructed for
23 // the browser process.
24 CONTENT_EXPORT scoped_refptr<fileapi::FileSystemContext>
25 CreateFileSystemContext(
26 BrowserContext* browser_context,
27 const base::FilePath& profile_path,
28 bool is_incognito,
29 quota::QuotaManagerProxy* quota_manager_proxy);
31 // Verifies that |url| is valid and has a registered backend in |context|.
32 CONTENT_EXPORT bool FileSystemURLIsValid(fileapi::FileSystemContext* context,
33 const fileapi::FileSystemURL& url);
35 // Get the platform path from a file system URL. This needs to be called
36 // on the FILE thread.
37 CONTENT_EXPORT void SyncGetPlatformPath(fileapi::FileSystemContext* context,
38 int process_id,
39 const GURL& path,
40 base::FilePath* platform_path);
41 } // namespace content
43 #endif // CONTENT_BROWSER_FILEAPI_BROWSER_FILE_SYSTEM_HELPER_H_