| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 } | 50 } |
| 51 | 51 |
| 52 void AsyncFileWriterChromium::setWebFileWriter(PassOwnPtr<WebKit::WebFileWriter>
writer) | 52 void AsyncFileWriterChromium::setWebFileWriter(PassOwnPtr<WebKit::WebFileWriter>
writer) |
| 53 { | 53 { |
| 54 m_writer = writer; | 54 m_writer = writer; |
| 55 } | 55 } |
| 56 | 56 |
| 57 void AsyncFileWriterChromium::write(long long position, Blob* data) | 57 void AsyncFileWriterChromium::write(long long position, Blob* data) |
| 58 { | 58 { |
| 59 ASSERT(m_writer); | 59 ASSERT(m_writer); |
| 60 m_writer->write(position, WebKit::WebURL(data->url())); | 60 m_writer->write(position, WebKit::WebString(data->uuid())); |
| 61 } | 61 } |
| 62 | 62 |
| 63 void AsyncFileWriterChromium::truncate(long long length) | 63 void AsyncFileWriterChromium::truncate(long long length) |
| 64 { | 64 { |
| 65 ASSERT(m_writer); | 65 ASSERT(m_writer); |
| 66 m_writer->truncate(length); | 66 m_writer->truncate(length); |
| 67 } | 67 } |
| 68 | 68 |
| 69 void AsyncFileWriterChromium::abort() | 69 void AsyncFileWriterChromium::abort() |
| 70 { | 70 { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 84 } | 84 } |
| 85 | 85 |
| 86 void AsyncFileWriterChromium::didFail(WebKit::WebFileError error) | 86 void AsyncFileWriterChromium::didFail(WebKit::WebFileError error) |
| 87 { | 87 { |
| 88 m_client->didFail(static_cast<FileError::ErrorCode>(error)); | 88 m_client->didFail(static_cast<FileError::ErrorCode>(error)); |
| 89 } | 89 } |
| 90 | 90 |
| 91 } // namespace | 91 } // namespace |
| 92 | 92 |
| 93 #endif // ENABLE(FILE_SYSTEM) | 93 #endif // ENABLE(FILE_SYSTEM) |
| OLD | NEW |