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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 Member<DirectoryReaderSync> m_reader; | 66 Member<DirectoryReaderSync> m_reader; |
67 }; | 67 }; |
68 | 68 |
69 class DirectoryReaderSync::ErrorCallbackHelper final : public ErrorCallback { | 69 class DirectoryReaderSync::ErrorCallbackHelper final : public ErrorCallback { |
70 public: | 70 public: |
71 explicit ErrorCallbackHelper(DirectoryReaderSync* reader) | 71 explicit ErrorCallbackHelper(DirectoryReaderSync* reader) |
72 : m_reader(reader) | 72 : m_reader(reader) |
73 { | 73 { |
74 } | 74 } |
75 | 75 |
76 void handleEvent(FileError* error) override | 76 void handleEvent(DOMException* error) override |
77 { | 77 { |
78 m_reader->setError(error->code()); | 78 NOTREACHED(); |
| 79 } |
| 80 |
| 81 void handleEvent(FileError::ErrorCode error) override |
| 82 { |
| 83 m_reader->setError(error); |
79 } | 84 } |
80 | 85 |
81 DEFINE_INLINE_VIRTUAL_TRACE() | 86 DEFINE_INLINE_VIRTUAL_TRACE() |
82 { | 87 { |
83 visitor->trace(m_reader); | 88 visitor->trace(m_reader); |
84 ErrorCallback::trace(visitor); | 89 ErrorCallback::trace(visitor); |
85 } | 90 } |
86 | 91 |
87 private: | 92 private: |
88 Member<DirectoryReaderSync> m_reader; | 93 Member<DirectoryReaderSync> m_reader; |
(...skipping 29 matching lines...) Expand all Loading... |
118 return result; | 123 return result; |
119 } | 124 } |
120 | 125 |
121 DEFINE_TRACE(DirectoryReaderSync) | 126 DEFINE_TRACE(DirectoryReaderSync) |
122 { | 127 { |
123 visitor->trace(m_entries); | 128 visitor->trace(m_entries); |
124 DirectoryReaderBase::trace(visitor); | 129 DirectoryReaderBase::trace(visitor); |
125 } | 130 } |
126 | 131 |
127 } // namespace blink | 132 } // namespace blink |
OLD | NEW |