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

Side by Side Diff: content/browser/fileapi/browser_file_system_helper.h

Issue 18667002: Pass BrowserContext to drive::MountPointProviderDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 5 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) 2012 The Chromium Authors. All rights reserved. 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 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_BROWSER_FILEAPI_BROWSER_FILE_SYSTEM_HELPER_H_ 5 #ifndef CONTENT_BROWSER_FILEAPI_BROWSER_FILE_SYSTEM_HELPER_H_
6 #define CONTENT_BROWSER_FILEAPI_BROWSER_FILE_SYSTEM_HELPER_H_ 6 #define CONTENT_BROWSER_FILEAPI_BROWSER_FILE_SYSTEM_HELPER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "webkit/browser/fileapi/file_system_context.h" 10 #include "webkit/browser/fileapi/file_system_context.h"
11 11
12 namespace fileapi { 12 namespace fileapi {
13 class ExternalMountPoints; 13 class ExternalMountPoints;
14 class FileSystemContext; 14 class FileSystemContext;
15 class FileSystemURL; 15 class FileSystemURL;
16 } 16 }
17 17
18 namespace quota { 18 namespace content {
19 class SpecialStoragePolicy;
20 }
21 19
22 namespace content { 20 class BrowserContext;
23 21
24 // Helper method that returns FileSystemContext constructed for 22 // Helper method that returns FileSystemContext constructed for
25 // the browser process. 23 // the browser process.
26 CONTENT_EXPORT scoped_refptr<fileapi::FileSystemContext> 24 CONTENT_EXPORT scoped_refptr<fileapi::FileSystemContext>
27 CreateFileSystemContext( 25 CreateFileSystemContext(
26 BrowserContext* browser_context,
28 const base::FilePath& profile_path, 27 const base::FilePath& profile_path,
29 bool is_incognito, 28 bool is_incognito,
30 fileapi::ExternalMountPoints* external_mount_points,
31 quota::SpecialStoragePolicy* special_storage_policy,
32 quota::QuotaManagerProxy* quota_manager_proxy); 29 quota::QuotaManagerProxy* quota_manager_proxy);
33 30
34 // Check whether a process has permission to access the file system URL. 31 // Check whether a process has permission to access the file system URL.
35 CONTENT_EXPORT bool CheckFileSystemPermissionsForProcess( 32 CONTENT_EXPORT bool CheckFileSystemPermissionsForProcess(
36 fileapi::FileSystemContext* context, 33 fileapi::FileSystemContext* context,
37 int process_id, 34 int process_id,
38 const fileapi::FileSystemURL& url, 35 const fileapi::FileSystemURL& url,
39 int permissions, 36 int permissions,
40 base::PlatformFileError* error); 37 base::PlatformFileError* error);
41 38
42 // Get the platform path from a file system URL. This needs to be called 39 // Get the platform path from a file system URL. This needs to be called
43 // on the FILE thread. 40 // on the FILE thread.
44 CONTENT_EXPORT void SyncGetPlatformPath(fileapi::FileSystemContext* context, 41 CONTENT_EXPORT void SyncGetPlatformPath(fileapi::FileSystemContext* context,
45 int process_id, 42 int process_id,
46 const GURL& path, 43 const GURL& path,
47 base::FilePath* platform_path); 44 base::FilePath* platform_path);
48 } // namespace content 45 } // namespace content
49 46
50 #endif // CONTENT_BROWSER_FILEAPI_BROWSER_FILE_SYSTEM_HELPER_H_ 47 #endif // CONTENT_BROWSER_FILEAPI_BROWSER_FILE_SYSTEM_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/file_system_backend_delegate.cc ('k') | content/browser/fileapi/browser_file_system_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698