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

Side by Side Diff: webkit/browser/fileapi/file_system_context.h

Issue 498273002: Rename storage-related export macros and build targets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
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 WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_
6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/files/file.h" 13 #include "base/files/file.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/memory/scoped_vector.h" 16 #include "base/memory/scoped_vector.h"
17 #include "base/sequenced_task_runner_helpers.h" 17 #include "base/sequenced_task_runner_helpers.h"
18 #include "webkit/browser/fileapi/file_system_url.h" 18 #include "webkit/browser/fileapi/file_system_url.h"
19 #include "webkit/browser/fileapi/open_file_system_mode.h" 19 #include "webkit/browser/fileapi/open_file_system_mode.h"
20 #include "webkit/browser/fileapi/plugin_private_file_system_backend.h" 20 #include "webkit/browser/fileapi/plugin_private_file_system_backend.h"
21 #include "webkit/browser/fileapi/sandbox_file_system_backend_delegate.h" 21 #include "webkit/browser/fileapi/sandbox_file_system_backend_delegate.h"
22 #include "webkit/browser/fileapi/task_runner_bound_observer_list.h" 22 #include "webkit/browser/fileapi/task_runner_bound_observer_list.h"
23 #include "webkit/browser/webkit_storage_browser_export.h" 23 #include "webkit/browser/storage_export.h"
24 #include "webkit/common/fileapi/file_system_types.h" 24 #include "webkit/common/fileapi/file_system_types.h"
25 25
26 namespace base { 26 namespace base {
27 class FilePath; 27 class FilePath;
28 class SequencedTaskRunner; 28 class SequencedTaskRunner;
29 class SingleThreadTaskRunner; 29 class SingleThreadTaskRunner;
30 } 30 }
31 31
32 namespace chrome { 32 namespace chrome {
33 class NativeMediaFileUtilTest; 33 class NativeMediaFileUtilTest;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // Called on the IO thread. 76 // Called on the IO thread.
77 typedef base::Callback<bool( 77 typedef base::Callback<bool(
78 const net::URLRequest* url_request, 78 const net::URLRequest* url_request,
79 const FileSystemURL& filesystem_url, 79 const FileSystemURL& filesystem_url,
80 const std::string& storage_domain, 80 const std::string& storage_domain,
81 const base::Callback<void(base::File::Error result)>& callback)> 81 const base::Callback<void(base::File::Error result)>& callback)>
82 URLRequestAutoMountHandler; 82 URLRequestAutoMountHandler;
83 83
84 // This class keeps and provides a file system context for FileSystem API. 84 // This class keeps and provides a file system context for FileSystem API.
85 // An instance of this class is created and owned by profile. 85 // An instance of this class is created and owned by profile.
86 class WEBKIT_STORAGE_BROWSER_EXPORT FileSystemContext 86 class STORAGE_EXPORT FileSystemContext
87 : public base::RefCountedThreadSafe<FileSystemContext, 87 : public base::RefCountedThreadSafe<FileSystemContext,
88 DefaultContextDeleter> { 88 DefaultContextDeleter> {
89 public: 89 public:
90 // Returns file permission policy we should apply for the given |type|. 90 // Returns file permission policy we should apply for the given |type|.
91 // The return value must be bitwise-or'd of FilePermissionPolicy. 91 // The return value must be bitwise-or'd of FilePermissionPolicy.
92 // 92 //
93 // Note: if a part of a filesystem is returned via 'Isolated' mount point, 93 // Note: if a part of a filesystem is returned via 'Isolated' mount point,
94 // its per-filesystem permission overrides the underlying filesystem's 94 // its per-filesystem permission overrides the underlying filesystem's
95 // permission policy. 95 // permission policy.
96 static int GetPermissionPolicy(FileSystemType type); 96 static int GetPermissionPolicy(FileSystemType type);
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 413
414 struct DefaultContextDeleter { 414 struct DefaultContextDeleter {
415 static void Destruct(const FileSystemContext* context) { 415 static void Destruct(const FileSystemContext* context) {
416 context->DeleteOnCorrectThread(); 416 context->DeleteOnCorrectThread();
417 } 417 }
418 }; 418 };
419 419
420 } // namespace storage 420 } // namespace storage
421 421
422 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 422 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/file_system_backend.h ('k') | webkit/browser/fileapi/file_system_dir_url_request_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698