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

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

Issue 16701004: Fix webkit_storage exports definitions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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 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/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/scoped_vector.h" 15 #include "base/memory/scoped_vector.h"
16 #include "base/platform_file.h" 16 #include "base/platform_file.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/task_runner_bound_observer_list.h" 20 #include "webkit/browser/fileapi/task_runner_bound_observer_list.h"
21 #include "webkit/browser/webkit_storage_browser_export.h"
21 #include "webkit/common/fileapi/file_system_types.h" 22 #include "webkit/common/fileapi/file_system_types.h"
22 #include "webkit/storage/webkit_storage_export.h"
23 23
24 namespace base { 24 namespace base {
25 class FilePath; 25 class FilePath;
26 } 26 }
27 27
28 namespace chrome { 28 namespace chrome {
29 class NativeMediaFileUtilTest; 29 class NativeMediaFileUtilTest;
30 } 30 }
31 31
32 namespace quota { 32 namespace quota {
(...skipping 27 matching lines...) Expand all
60 class FileSystemTaskRunners; 60 class FileSystemTaskRunners;
61 class FileSystemURL; 61 class FileSystemURL;
62 class IsolatedMountPointProvider; 62 class IsolatedMountPointProvider;
63 class MountPoints; 63 class MountPoints;
64 class SandboxMountPointProvider; 64 class SandboxMountPointProvider;
65 65
66 struct DefaultContextDeleter; 66 struct DefaultContextDeleter;
67 67
68 // This class keeps and provides a file system context for FileSystem API. 68 // This class keeps and provides a file system context for FileSystem API.
69 // An instance of this class is created and owned by profile. 69 // An instance of this class is created and owned by profile.
70 class WEBKIT_STORAGE_EXPORT FileSystemContext 70 class WEBKIT_STORAGE_BROWSER_EXPORT FileSystemContext
71 : public base::RefCountedThreadSafe<FileSystemContext, 71 : public base::RefCountedThreadSafe<FileSystemContext,
72 DefaultContextDeleter> { 72 DefaultContextDeleter> {
73 public: 73 public:
74 // task_runners->file_task_runner() is used as default TaskRunner. 74 // task_runners->file_task_runner() is used as default TaskRunner.
75 // Unless a MountPointProvider is overridden in CreateFileSystemOperation, 75 // Unless a MountPointProvider is overridden in CreateFileSystemOperation,
76 // it is used for all file operations and file related meta operations. 76 // it is used for all file operations and file related meta operations.
77 // The code assumes that 77 // The code assumes that
78 // task_runners->file_task_runner()->RunsTasksOnCurrentThread() 78 // task_runners->file_task_runner()->RunsTasksOnCurrentThread()
79 // returns false if the current task is not running on the thread that allows 79 // returns false if the current task is not running on the thread that allows
80 // blocking file operations (like SequencedWorkerPool implementation does). 80 // blocking file operations (like SequencedWorkerPool implementation does).
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 308
309 struct DefaultContextDeleter { 309 struct DefaultContextDeleter {
310 static void Destruct(const FileSystemContext* context) { 310 static void Destruct(const FileSystemContext* context) {
311 context->DeleteOnCorrectThread(); 311 context->DeleteOnCorrectThread();
312 } 312 }
313 }; 313 };
314 314
315 } // namespace fileapi 315 } // namespace fileapi
316 316
317 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 317 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/file_stream_writer.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