| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 Member<DirectoryReader> m_reader; | 60 Member<DirectoryReader> m_reader; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 class DirectoryReader::ErrorCallbackHelper final : public ErrorCallback { | 63 class DirectoryReader::ErrorCallbackHelper final : public ErrorCallback { |
| 64 public: | 64 public: |
| 65 explicit ErrorCallbackHelper(DirectoryReader* reader) | 65 explicit ErrorCallbackHelper(DirectoryReader* reader) |
| 66 : m_reader(reader) | 66 : m_reader(reader) |
| 67 { | 67 { |
| 68 } | 68 } |
| 69 | 69 |
| 70 void handleEvent(DOMException* error) override |
| 71 { |
| 72 NOTREACHED(); |
| 73 } |
| 74 |
| 70 void handleEvent(FileError* error) override | 75 void handleEvent(FileError* error) override |
| 71 { | 76 { |
| 72 m_reader->onError(error); | 77 m_reader->onError(error); |
| 73 } | 78 } |
| 74 | 79 |
| 75 DEFINE_INLINE_VIRTUAL_TRACE() | 80 DEFINE_INLINE_VIRTUAL_TRACE() |
| 76 { | 81 { |
| 77 visitor->trace(m_reader); | 82 visitor->trace(m_reader); |
| 78 ErrorCallback::trace(visitor); | 83 ErrorCallback::trace(visitor); |
| 79 } | 84 } |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 DEFINE_TRACE(DirectoryReader) | 150 DEFINE_TRACE(DirectoryReader) |
| 146 { | 151 { |
| 147 visitor->trace(m_entries); | 152 visitor->trace(m_entries); |
| 148 visitor->trace(m_error); | 153 visitor->trace(m_error); |
| 149 visitor->trace(m_entriesCallback); | 154 visitor->trace(m_entriesCallback); |
| 150 visitor->trace(m_errorCallback); | 155 visitor->trace(m_errorCallback); |
| 151 DirectoryReaderBase::trace(visitor); | 156 DirectoryReaderBase::trace(visitor); |
| 152 } | 157 } |
| 153 | 158 |
| 154 } // namespace blink | 159 } // namespace blink |
| OLD | NEW |