| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 namespace { | 121 namespace { |
| 122 | 122 |
| 123 class ConvertToFileWriterCallback : public FileWriterBaseCallback { | 123 class ConvertToFileWriterCallback : public FileWriterBaseCallback { |
| 124 public: | 124 public: |
| 125 static ConvertToFileWriterCallback* create(FileWriterCallback* callback) | 125 static ConvertToFileWriterCallback* create(FileWriterCallback* callback) |
| 126 { | 126 { |
| 127 return new ConvertToFileWriterCallback(callback); | 127 return new ConvertToFileWriterCallback(callback); |
| 128 } | 128 } |
| 129 | 129 |
| 130 void trace(Visitor* visitor) | 130 DEFINE_INLINE_TRACE() |
| 131 { | 131 { |
| 132 visitor->trace(m_callback); | 132 visitor->trace(m_callback); |
| 133 FileWriterBaseCallback::trace(visitor); | 133 FileWriterBaseCallback::trace(visitor); |
| 134 } | 134 } |
| 135 | 135 |
| 136 void handleEvent(FileWriterBase* fileWriterBase) | 136 void handleEvent(FileWriterBase* fileWriterBase) |
| 137 { | 137 { |
| 138 m_callback->handleEvent(static_cast<FileWriter*>(fileWriterBase)); | 138 m_callback->handleEvent(static_cast<FileWriter*>(fileWriterBase)); |
| 139 } | 139 } |
| 140 private: | 140 private: |
| (...skipping 25 matching lines...) Expand all Loading... |
| 166 { | 166 { |
| 167 KURL fileSystemURL = createFileSystemURL(fileEntry); | 167 KURL fileSystemURL = createFileSystemURL(fileEntry); |
| 168 if (!fileSystem()) { | 168 if (!fileSystem()) { |
| 169 reportError(errorCallback, FileError::create(FileError::ABORT_ERR)); | 169 reportError(errorCallback, FileError::create(FileError::ABORT_ERR)); |
| 170 return; | 170 return; |
| 171 } | 171 } |
| 172 | 172 |
| 173 fileSystem()->createSnapshotFileAndReadMetadata(fileSystemURL, SnapshotFileC
allback::create(this, fileEntry->name(), fileSystemURL, successCallback, errorCa
llback, m_context)); | 173 fileSystem()->createSnapshotFileAndReadMetadata(fileSystemURL, SnapshotFileC
allback::create(this, fileEntry->name(), fileSystemURL, successCallback, errorCa
llback, m_context)); |
| 174 } | 174 } |
| 175 | 175 |
| 176 void DOMFileSystem::trace(Visitor* visitor) | 176 DEFINE_TRACE(DOMFileSystem) |
| 177 { | 177 { |
| 178 DOMFileSystemBase::trace(visitor); | 178 DOMFileSystemBase::trace(visitor); |
| 179 ActiveDOMObject::trace(visitor); | 179 ActiveDOMObject::trace(visitor); |
| 180 } | 180 } |
| 181 | 181 |
| 182 } // namespace blink | 182 } // namespace blink |
| OLD | NEW |