| 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 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 namespace blink { | 42 namespace blink { |
| 43 | 43 |
| 44 class DirectoryEntry; | 44 class DirectoryEntry; |
| 45 class File; | 45 class File; |
| 46 class FileCallback; | 46 class FileCallback; |
| 47 class FileEntry; | 47 class FileEntry; |
| 48 class FileWriterCallback; | 48 class FileWriterCallback; |
| 49 | 49 |
| 50 class DOMFileSystem FINAL : public DOMFileSystemBase, public ScriptWrappable, pu
blic ActiveDOMObject { | 50 class DOMFileSystem FINAL : public DOMFileSystemBase, public ScriptWrappable, pu
blic ActiveDOMObject { |
| 51 DEFINE_WRAPPERTYPEINFO(); |
| 51 public: | 52 public: |
| 52 static DOMFileSystem* create(ExecutionContext*, const String& name, FileSyst
emType, const KURL& rootURL); | 53 static DOMFileSystem* create(ExecutionContext*, const String& name, FileSyst
emType, const KURL& rootURL); |
| 53 | 54 |
| 54 // Creates a new isolated file system for the given filesystemId. | 55 // Creates a new isolated file system for the given filesystemId. |
| 55 static DOMFileSystem* createIsolatedFileSystem(ExecutionContext*, const Stri
ng& filesystemId); | 56 static DOMFileSystem* createIsolatedFileSystem(ExecutionContext*, const Stri
ng& filesystemId); |
| 56 | 57 |
| 57 DirectoryEntry* root(); | 58 DirectoryEntry* root(); |
| 58 | 59 |
| 59 // DOMFileSystemBase overrides. | 60 // DOMFileSystemBase overrides. |
| 60 virtual void addPendingCallbacks() OVERRIDE; | 61 virtual void addPendingCallbacks() OVERRIDE; |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 } | 233 } |
| 233 | 234 |
| 234 template <typename CB> | 235 template <typename CB> |
| 235 void DOMFileSystem::scheduleCallback(ExecutionContext* executionContext, PassOwn
PtrWillBeRawPtr<CB> callback) | 236 void DOMFileSystem::scheduleCallback(ExecutionContext* executionContext, PassOwn
PtrWillBeRawPtr<CB> callback) |
| 236 { | 237 { |
| 237 ASSERT(executionContext->isContextThread()); | 238 ASSERT(executionContext->isContextThread()); |
| 238 if (callback) | 239 if (callback) |
| 239 executionContext->postTask(adoptPtr(new DispatchCallbackNoArgTask<CB>(ca
llback))); | 240 executionContext->postTask(adoptPtr(new DispatchCallbackNoArgTask<CB>(ca
llback))); |
| 240 } | 241 } |
| 241 | 242 |
| 242 } // namespace | 243 } // namespace blink |
| 243 | 244 |
| 244 #endif // DOMFileSystem_h | 245 #endif // DOMFileSystem_h |
| OLD | NEW |