| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 m_callback->handleEvent(static_cast<FileWriter*>(fileWriterBase)); | 138 m_callback->handleEvent(static_cast<FileWriter*>(fileWriterBase)); |
| 139 } | 139 } |
| 140 private: | 140 private: |
| 141 explicit ConvertToFileWriterCallback(FileWriterCallback* callback) | 141 explicit ConvertToFileWriterCallback(FileWriterCallback* callback) |
| 142 : m_callback(callback) | 142 : m_callback(callback) |
| 143 { | 143 { |
| 144 } | 144 } |
| 145 Member<FileWriterCallback> m_callback; | 145 Member<FileWriterCallback> m_callback; |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 } | 148 } // namespace |
| 149 | 149 |
| 150 void DOMFileSystem::createWriter(const FileEntry* fileEntry, FileWriterCallback*
successCallback, ErrorCallback* errorCallback) | 150 void DOMFileSystem::createWriter(const FileEntry* fileEntry, FileWriterCallback*
successCallback, ErrorCallback* errorCallback) |
| 151 { | 151 { |
| 152 ASSERT(fileEntry); | 152 ASSERT(fileEntry); |
| 153 | 153 |
| 154 if (!fileSystem()) { | 154 if (!fileSystem()) { |
| 155 reportError(errorCallback, FileError::create(FileError::ABORT_ERR)); | 155 reportError(errorCallback, FileError::create(FileError::ABORT_ERR)); |
| 156 return; | 156 return; |
| 157 } | 157 } |
| 158 | 158 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 174 } | 174 } |
| 175 | 175 |
| 176 DEFINE_TRACE(DOMFileSystem) | 176 DEFINE_TRACE(DOMFileSystem) |
| 177 { | 177 { |
| 178 DOMFileSystemBase::trace(visitor); | 178 DOMFileSystemBase::trace(visitor); |
| 179 ActiveDOMObject::trace(visitor); | 179 ActiveDOMObject::trace(visitor); |
| 180 visitor->trace(m_rootEntry); | 180 visitor->trace(m_rootEntry); |
| 181 } | 181 } |
| 182 | 182 |
| 183 } // namespace blink | 183 } // namespace blink |
| OLD | NEW |