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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 DECLARE_VIRTUAL_TRACE(); | 59 DECLARE_VIRTUAL_TRACE(); |
60 | 60 |
61 private: | 61 private: |
62 class EntriesCallbackHelper; | 62 class EntriesCallbackHelper; |
63 class ErrorCallbackHelper; | 63 class ErrorCallbackHelper; |
64 | 64 |
65 DirectoryReader(DOMFileSystemBase*, const String& fullPath); | 65 DirectoryReader(DOMFileSystemBase*, const String& fullPath); |
66 | 66 |
67 void addEntries(const EntryHeapVector& entries); | 67 void addEntries(const EntryHeapVector& entries); |
68 | 68 |
69 void onError(FileError*); | 69 void onError(FileError::ErrorCode); |
70 | 70 |
71 bool m_isReading; | 71 bool m_isReading; |
72 EntryHeapVector m_entries; | 72 EntryHeapVector m_entries; |
73 Member<FileError> m_error; | 73 FileError::ErrorCode m_error = FileError::ErrorCode::OK; |
74 Member<EntriesCallback> m_entriesCallback; | 74 Member<EntriesCallback> m_entriesCallback; |
75 Member<ErrorCallback> m_errorCallback; | 75 Member<ErrorCallback> m_errorCallback; |
76 }; | 76 }; |
77 | 77 |
78 } // namespace blink | 78 } // namespace blink |
79 | 79 |
80 #endif // DirectoryReader_h | 80 #endif // DirectoryReader_h |
OLD | NEW |