OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ |
6 #define WEBKIT_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 int64 offset, | 75 int64 offset, |
76 const base::Time& expected_modification_time, | 76 const base::Time& expected_modification_time, |
77 FileSystemContext* context) const OVERRIDE; | 77 FileSystemContext* context) const OVERRIDE; |
78 virtual scoped_ptr<FileStreamWriter> CreateFileStreamWriter( | 78 virtual scoped_ptr<FileStreamWriter> CreateFileStreamWriter( |
79 const FileSystemURL& url, | 79 const FileSystemURL& url, |
80 int64 offset, | 80 int64 offset, |
81 FileSystemContext* context) const OVERRIDE; | 81 FileSystemContext* context) const OVERRIDE; |
82 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; | 82 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; |
83 | 83 |
84 // FileSystemQuotaUtil overrides. | 84 // FileSystemQuotaUtil overrides. |
85 virtual base::PlatformFileError DeleteOriginDataOnFileThread( | 85 virtual base::PlatformFileError DeleteOriginDataOnFileTaskRunner( |
86 FileSystemContext* context, | 86 FileSystemContext* context, |
87 quota::QuotaManagerProxy* proxy, | 87 quota::QuotaManagerProxy* proxy, |
88 const GURL& origin_url, | 88 const GURL& origin_url, |
89 FileSystemType type) OVERRIDE; | 89 FileSystemType type) OVERRIDE; |
90 virtual void GetOriginsForTypeOnFileThread( | 90 virtual void GetOriginsForTypeOnFileTaskRunner( |
91 FileSystemType type, | 91 FileSystemType type, |
92 std::set<GURL>* origins) OVERRIDE; | 92 std::set<GURL>* origins) OVERRIDE; |
93 virtual void GetOriginsForHostOnFileThread( | 93 virtual void GetOriginsForHostOnFileTaskRunner( |
94 FileSystemType type, | 94 FileSystemType type, |
95 const std::string& host, | 95 const std::string& host, |
96 std::set<GURL>* origins) OVERRIDE; | 96 std::set<GURL>* origins) OVERRIDE; |
97 virtual int64 GetOriginUsageOnFileThread( | 97 virtual int64 GetOriginUsageOnFileTaskRunner( |
98 FileSystemContext* context, | 98 FileSystemContext* context, |
99 const GURL& origin_url, | 99 const GURL& origin_url, |
100 FileSystemType type) OVERRIDE; | 100 FileSystemType type) OVERRIDE; |
101 virtual scoped_refptr<QuotaReservation> | 101 virtual scoped_refptr<QuotaReservation> |
102 CreateQuotaReservationOnFileTaskRunner( | 102 CreateQuotaReservationOnFileTaskRunner( |
103 const GURL& origin_url, | 103 const GURL& origin_url, |
104 FileSystemType type) OVERRIDE; | 104 FileSystemType type) OVERRIDE; |
105 virtual void AddFileUpdateObserver( | 105 virtual void AddFileUpdateObserver( |
106 FileSystemType type, | 106 FileSystemType type, |
107 FileUpdateObserver* observer, | 107 FileUpdateObserver* observer, |
(...skipping 25 matching lines...) Expand all Loading... |
133 scoped_ptr<AsyncFileUtil> file_util_; | 133 scoped_ptr<AsyncFileUtil> file_util_; |
134 FileSystemIDToPluginMap* plugin_map_; // Owned by file_util_. | 134 FileSystemIDToPluginMap* plugin_map_; // Owned by file_util_. |
135 base::WeakPtrFactory<PluginPrivateFileSystemBackend> weak_factory_; | 135 base::WeakPtrFactory<PluginPrivateFileSystemBackend> weak_factory_; |
136 | 136 |
137 DISALLOW_COPY_AND_ASSIGN(PluginPrivateFileSystemBackend); | 137 DISALLOW_COPY_AND_ASSIGN(PluginPrivateFileSystemBackend); |
138 }; | 138 }; |
139 | 139 |
140 } // namespace fileapi | 140 } // namespace fileapi |
141 | 141 |
142 #endif // WEBKIT_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ | 142 #endif // WEBKIT_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ |
OLD | NEW |