OLD | NEW |
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> |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 const StatusCallback& callback); | 266 const StatusCallback& callback); |
267 | 267 |
268 private: | 268 private: |
269 typedef std::map<FileSystemType, FileSystemBackend*> | 269 typedef std::map<FileSystemType, FileSystemBackend*> |
270 FileSystemBackendMap; | 270 FileSystemBackendMap; |
271 | 271 |
272 // For CreateFileSystemOperation. | 272 // For CreateFileSystemOperation. |
273 friend class FileSystemOperationRunner; | 273 friend class FileSystemOperationRunner; |
274 | 274 |
275 // For sandbox_backend(). | 275 // For sandbox_backend(). |
276 friend class SandboxFileSystemTestHelper; | 276 friend class content::SandboxFileSystemTestHelper; |
277 | 277 |
278 // For plugin_private_backend(). | 278 // For plugin_private_backend(). |
279 friend class PluginPrivateFileSystemBackendTest; | 279 friend class content::PluginPrivateFileSystemBackendTest; |
280 | 280 |
281 // Deleters. | 281 // Deleters. |
282 friend struct DefaultContextDeleter; | 282 friend struct DefaultContextDeleter; |
283 friend class base::DeleteHelper<FileSystemContext>; | 283 friend class base::DeleteHelper<FileSystemContext>; |
284 friend class base::RefCountedThreadSafe<FileSystemContext, | 284 friend class base::RefCountedThreadSafe<FileSystemContext, |
285 DefaultContextDeleter>; | 285 DefaultContextDeleter>; |
286 ~FileSystemContext(); | 286 ~FileSystemContext(); |
287 | 287 |
288 void DeleteOnCorrectThread() const; | 288 void DeleteOnCorrectThread() const; |
289 | 289 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 | 371 |
372 struct DefaultContextDeleter { | 372 struct DefaultContextDeleter { |
373 static void Destruct(const FileSystemContext* context) { | 373 static void Destruct(const FileSystemContext* context) { |
374 context->DeleteOnCorrectThread(); | 374 context->DeleteOnCorrectThread(); |
375 } | 375 } |
376 }; | 376 }; |
377 | 377 |
378 } // namespace fileapi | 378 } // namespace fileapi |
379 | 379 |
380 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ | 380 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
OLD | NEW |