| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 } | 179 } |
| 180 }; | 180 }; |
| 181 | 181 |
| 182 class LocalErrorCallback final : public ErrorCallback { | 182 class LocalErrorCallback final : public ErrorCallback { |
| 183 public: | 183 public: |
| 184 static LocalErrorCallback* create(FileError::ErrorCode& errorCode) | 184 static LocalErrorCallback* create(FileError::ErrorCode& errorCode) |
| 185 { | 185 { |
| 186 return new LocalErrorCallback(errorCode); | 186 return new LocalErrorCallback(errorCode); |
| 187 } | 187 } |
| 188 | 188 |
| 189 void handleEvent(DOMException* error) override |
| 190 { |
| 191 NOTREACHED(); |
| 192 } |
| 193 |
| 189 void handleEvent(FileError* error) override | 194 void handleEvent(FileError* error) override |
| 190 { | 195 { |
| 191 ASSERT(error->code() != FileError::OK); | 196 ASSERT(error->code() != FileError::OK); |
| 192 m_errorCode = error->code(); | 197 m_errorCode = error->code(); |
| 193 } | 198 } |
| 194 | 199 |
| 195 private: | 200 private: |
| 196 explicit LocalErrorCallback(FileError::ErrorCode& errorCode) | 201 explicit LocalErrorCallback(FileError::ErrorCode& errorCode) |
| 197 : m_errorCode(errorCode) | 202 : m_errorCode(errorCode) |
| 198 { | 203 { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 223 return fileWriter; | 228 return fileWriter; |
| 224 } | 229 } |
| 225 | 230 |
| 226 DEFINE_TRACE(DOMFileSystemSync) | 231 DEFINE_TRACE(DOMFileSystemSync) |
| 227 { | 232 { |
| 228 DOMFileSystemBase::trace(visitor); | 233 DOMFileSystemBase::trace(visitor); |
| 229 visitor->trace(m_rootEntry); | 234 visitor->trace(m_rootEntry); |
| 230 } | 235 } |
| 231 | 236 |
| 232 } // namespace blink | 237 } // namespace blink |
| OLD | NEW |