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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 static DOMFileSystem* create(ExecutionContext*, const String& name, FileSyst
emType, const KURL& rootURL); | 57 static DOMFileSystem* create(ExecutionContext*, const String& name, FileSyst
emType, const KURL& rootURL); |
58 | 58 |
59 // Creates a new isolated file system for the given filesystemId. | 59 // Creates a new isolated file system for the given filesystemId. |
60 static DOMFileSystem* createIsolatedFileSystem(ExecutionContext*, const Stri
ng& filesystemId); | 60 static DOMFileSystem* createIsolatedFileSystem(ExecutionContext*, const Stri
ng& filesystemId); |
61 | 61 |
62 DirectoryEntry* root() const; | 62 DirectoryEntry* root() const; |
63 | 63 |
64 // DOMFileSystemBase overrides. | 64 // DOMFileSystemBase overrides. |
65 void addPendingCallbacks() override; | 65 void addPendingCallbacks() override; |
66 void removePendingCallbacks() override; | 66 void removePendingCallbacks() override; |
67 void reportError(ErrorCallback*, FileError*) override; | 67 void reportError(ErrorCallback*, FileError::ErrorCode) override; |
68 | 68 |
69 // ActiveScriptWrappable overrides. | 69 // ActiveScriptWrappable overrides. |
70 bool hasPendingActivity() const final; | 70 bool hasPendingActivity() const final; |
71 | 71 |
72 void createWriter(const FileEntry*, FileWriterCallback*, ErrorCallback*); | 72 void createWriter(const FileEntry*, FileWriterCallback*, ErrorCallback*); |
73 void createFile(const FileEntry*, BlobCallback*, ErrorCallback*); | 73 void createFile(const FileEntry*, BlobCallback*, ErrorCallback*); |
74 | 74 |
75 // Schedule a callback. This should not cross threads (should be called on t
he same context thread). | 75 // Schedule a callback. This should not cross threads (should be called on t
he same context thread). |
76 // FIXME: move this to a more generic place. | 76 // FIXME: move this to a more generic place. |
77 template <typename CB, typename CBArg> | 77 template <typename CB, typename CBArg> |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 void DOMFileSystem::scheduleCallback(ExecutionContext* executionContext, CB* cal
lback) | 209 void DOMFileSystem::scheduleCallback(ExecutionContext* executionContext, CB* cal
lback) |
210 { | 210 { |
211 ASSERT(executionContext->isContextThread()); | 211 ASSERT(executionContext->isContextThread()); |
212 if (callback) | 212 if (callback) |
213 executionContext->postTask(BLINK_FROM_HERE, wrapUnique(new DispatchCallb
ackNoArgTask<CB>(callback))); | 213 executionContext->postTask(BLINK_FROM_HERE, wrapUnique(new DispatchCallb
ackNoArgTask<CB>(callback))); |
214 } | 214 } |
215 | 215 |
216 } // namespace blink | 216 } // namespace blink |
217 | 217 |
218 #endif // DOMFileSystem_h | 218 #endif // DOMFileSystem_h |
OLD | NEW |