| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 namespace blink { | 45 namespace blink { |
| 46 | 46 |
| 47 class DirectoryEntry; | 47 class DirectoryEntry; |
| 48 class BlobCallback; | 48 class BlobCallback; |
| 49 class FileEntry; | 49 class FileEntry; |
| 50 class FileWriterCallback; | 50 class FileWriterCallback; |
| 51 | 51 |
| 52 class MODULES_EXPORT DOMFileSystem final : public DOMFileSystemBase, public Scri
ptWrappable, public ActiveScriptWrappable, public ActiveDOMObject { | 52 class MODULES_EXPORT DOMFileSystem final : public DOMFileSystemBase, public Scri
ptWrappable, public ActiveScriptWrappable, public ActiveDOMObject { |
| 53 DEFINE_WRAPPERTYPEINFO(); | 53 DEFINE_WRAPPERTYPEINFO(); |
| 54 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMFileSystem); | 54 USING_GARBAGE_COLLECTED_MIXIN(DOMFileSystem); |
| 55 public: | 55 public: |
| 56 static DOMFileSystem* create(ExecutionContext*, const String& name, FileSyst
emType, const KURL& rootURL); | 56 static DOMFileSystem* create(ExecutionContext*, const String& name, FileSyst
emType, const KURL& rootURL); |
| 57 | 57 |
| 58 // Creates a new isolated file system for the given filesystemId. | 58 // Creates a new isolated file system for the given filesystemId. |
| 59 static DOMFileSystem* createIsolatedFileSystem(ExecutionContext*, const Stri
ng& filesystemId); | 59 static DOMFileSystem* createIsolatedFileSystem(ExecutionContext*, const Stri
ng& filesystemId); |
| 60 | 60 |
| 61 DirectoryEntry* root() const; | 61 DirectoryEntry* root() const; |
| 62 | 62 |
| 63 // DOMFileSystemBase overrides. | 63 // DOMFileSystemBase overrides. |
| 64 void addPendingCallbacks() override; | 64 void addPendingCallbacks() override; |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 void DOMFileSystem::scheduleCallback(ExecutionContext* executionContext, CB* cal
lback) | 208 void DOMFileSystem::scheduleCallback(ExecutionContext* executionContext, CB* cal
lback) |
| 209 { | 209 { |
| 210 ASSERT(executionContext->isContextThread()); | 210 ASSERT(executionContext->isContextThread()); |
| 211 if (callback) | 211 if (callback) |
| 212 executionContext->postTask(BLINK_FROM_HERE, adoptPtr(new DispatchCallbac
kNoArgTask<CB>(callback))); | 212 executionContext->postTask(BLINK_FROM_HERE, adoptPtr(new DispatchCallbac
kNoArgTask<CB>(callback))); |
| 213 } | 213 } |
| 214 | 214 |
| 215 } // namespace blink | 215 } // namespace blink |
| 216 | 216 |
| 217 #endif // DOMFileSystem_h | 217 #endif // DOMFileSystem_h |
| OLD | NEW |