Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: third_party/WebKit/Source/modules/filesystem/DirectoryReader.cpp

Issue 2040563002: Remove FileError interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fe-dep
Patch Set: Devtools/test updates Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698