| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 void FileWriterSync::didTruncate() | 104 void FileWriterSync::didTruncate() |
| 105 { | 105 { |
| 106 ASSERT(m_error == FileError::OK); | 106 ASSERT(m_error == FileError::OK); |
| 107 ASSERT(!m_complete); | 107 ASSERT(!m_complete); |
| 108 #ifndef NDEBUG | 108 #ifndef NDEBUG |
| 109 m_complete = true; | 109 m_complete = true; |
| 110 #endif | 110 #endif |
| 111 } | 111 } |
| 112 | 112 |
| 113 void FileWriterSync::didFail(WebKit::WebFileError error) | 113 void FileWriterSync::didFail(blink::WebFileError error) |
| 114 { | 114 { |
| 115 ASSERT(m_error == FileError::OK); | 115 ASSERT(m_error == FileError::OK); |
| 116 m_error = static_cast<FileError::ErrorCode>(error); | 116 m_error = static_cast<FileError::ErrorCode>(error); |
| 117 ASSERT(!m_complete); | 117 ASSERT(!m_complete); |
| 118 #ifndef NDEBUG | 118 #ifndef NDEBUG |
| 119 m_complete = true; | 119 m_complete = true; |
| 120 #endif | 120 #endif |
| 121 } | 121 } |
| 122 | 122 |
| 123 FileWriterSync::FileWriterSync() | 123 FileWriterSync::FileWriterSync() |
| (...skipping 13 matching lines...) Expand all Loading... |
| 137 m_complete = false; | 137 m_complete = false; |
| 138 #endif | 138 #endif |
| 139 } | 139 } |
| 140 | 140 |
| 141 FileWriterSync::~FileWriterSync() | 141 FileWriterSync::~FileWriterSync() |
| 142 { | 142 { |
| 143 } | 143 } |
| 144 | 144 |
| 145 | 145 |
| 146 } // namespace WebCore | 146 } // namespace WebCore |
| OLD | NEW |