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

Side by Side Diff: WebKit/chromium/src/AsyncFileWriterChromium.cpp

Issue 11192017: ********** WebCore blob hacking (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/Source/
Patch Set: Created 7 years, 11 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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)
OLDNEW
« no previous file with comments | « WebKit/chromium/src/AsyncFileSystemChromium.cpp ('k') | WebKit/chromium/src/LocalFileSystemChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698