Changeset 57749 in webkit
- Timestamp:
- Apr 16, 2010 2:55:19 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r57748 r57749 1 2010-04-16 Kinuko Yasuda <kinuko@chromium.org> 2 3 Reviewed by Jian Li. 4 5 Implement FileStreamProxy that calls FileStream methods on FileThread for FileAPI 6 https://bugs.webkit.org/show_bug.cgi?id=37218 7 8 No new tests; tests will be added when we add upper layer implementations. 9 10 * GNUmakefile.am: 11 * WebCore.gypi: 12 * WebCore.pro: 13 * WebCore.vcproj/WebCore.vcproj: 14 * WebCore.xcodeproj/project.pbxproj: 15 * html/FileStream.cpp: 16 (WebCore::FileStream::stop): 17 * html/FileStream.h: 18 * html/FileStreamClient.h: 19 (WebCore::FileStreamClient::didStop): 20 * html/FileStreamProxy.cpp: Added 21 * html/FileStreamProxy.h: Added 22 * html/FileThreadTask.h: Added 23 1 24 2010-04-16 Gavin Barraclough <barraclough@apple.com> 2 25 -
trunk/WebCore/GNUmakefile.am
r57505 r57749 1035 1035 WebCore/html/FileStream.h \ 1036 1036 WebCore/html/FileStreamClient.h \ 1037 WebCore/html/FileStreamProxy.cpp \ 1038 WebCore/html/FileStreamProxy.h \ 1037 1039 WebCore/html/FileThread.cpp \ 1038 1040 WebCore/html/FileThread.h \ 1041 WebCore/html/FileThreadTask.h \ 1039 1042 WebCore/html/FormDataList.cpp \ 1040 1043 WebCore/html/FormDataList.h \ -
trunk/WebCore/WebCore.gypi
r57505 r57749 1441 1441 'html/FileStream.h', 1442 1442 'html/FileStreamClient.h', 1443 'html/FileStreamProxy.cpp', 1444 'html/FileStreamProxy.h', 1443 1445 'html/FileThread.cpp', 1444 1446 'html/FileThread.h', 1447 'html/FileThreadTask.h', 1445 1448 'html/FormDataList.cpp', 1446 1449 'html/FormDataList.h', -
trunk/WebCore/WebCore.pro
r57505 r57749 613 613 html/FileList.cpp \ 614 614 html/FileStream.cpp \ 615 html/FileStreamProxy.cpp \ 615 616 html/FileThread.cpp \ 616 617 html/FormDataList.cpp \ … … 1330 1331 html/FileStream.h \ 1331 1332 html/FileStreamClient.h \ 1333 html/FileStreamProxy.h \ 1332 1334 html/FileThread.h \ 1335 html/FileThreadTask.h \ 1333 1336 html/FormDataList.h \ 1334 1337 html/HTMLAllCollection.h \ -
trunk/WebCore/WebCore.vcproj/WebCore.vcproj
r57505 r57749 30306 30306 </File> 30307 30307 <File 30308 RelativePath="..\html\FileStreamProxy.cpp" 30309 > 30310 </File> 30311 <File 30312 RelativePath="..\html\FileStreamProxy.h" 30313 > 30314 </File> 30315 <File 30308 30316 RelativePath="..\html\FileThread.cpp" 30309 30317 > … … 30311 30319 <File 30312 30320 RelativePath="..\html\FileThread.h" 30321 > 30322 </File> 30323 <File 30324 RelativePath="..\html\FileThreadTask.h" 30313 30325 > 30314 30326 </File> -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r57680 r57749 2215 2215 895253D8116C4C6800CABF00 /* FileStream.h in Headers */ = {isa = PBXBuildFile; fileRef = 895253D5116C4C6800CABF00 /* FileStream.h */; }; 2216 2216 895253D9116C4C6800CABF00 /* FileStreamClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 895253D6116C4C6800CABF00 /* FileStreamClient.h */; }; 2217 895253DC116C4EF500CABF00 /* FileStreamProxy.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 895253DA116C4EF500CABF00 /* FileStreamProxy.cpp */; }; 2218 895253DD116C4EF500CABF00 /* FileStreamProxy.h in Headers */ = {isa = PBXBuildFile; fileRef = 895253DB116C4EF500CABF00 /* FileStreamProxy.h */; }; 2219 895253DF116C4F0600CABF00 /* FileThreadTask.h in Headers */ = {isa = PBXBuildFile; fileRef = 895253DE116C4F0600CABF00 /* FileThreadTask.h */; }; 2217 2220 9302B0BD0D79F82900C7EE83 /* PageGroup.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9302B0BC0D79F82900C7EE83 /* PageGroup.cpp */; }; 2218 2221 9302B0BF0D79F82C00C7EE83 /* PageGroup.h in Headers */ = {isa = PBXBuildFile; fileRef = 9302B0BE0D79F82C00C7EE83 /* PageGroup.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 7674 7677 895253D5116C4C6800CABF00 /* FileStream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FileStream.h; sourceTree = "<group>"; }; 7675 7678 895253D6116C4C6800CABF00 /* FileStreamClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FileStreamClient.h; sourceTree = "<group>"; }; 7679 895253DA116C4EF500CABF00 /* FileStreamProxy.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FileStreamProxy.cpp; sourceTree = "<group>"; }; 7680 895253DB116C4EF500CABF00 /* FileStreamProxy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FileStreamProxy.h; sourceTree = "<group>"; }; 7681 895253DE116C4F0600CABF00 /* FileThreadTask.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FileThreadTask.h; sourceTree = "<group>"; }; 7676 7682 9302B0BC0D79F82900C7EE83 /* PageGroup.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PageGroup.cpp; sourceTree = "<group>"; }; 7677 7683 9302B0BE0D79F82C00C7EE83 /* PageGroup.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PageGroup.h; sourceTree = "<group>"; }; … … 12979 12985 isa = PBXGroup; 12980 12986 children = ( 12987 895253DE116C4F0600CABF00 /* FileThreadTask.h */, 12988 895253DA116C4EF500CABF00 /* FileStreamProxy.cpp */, 12989 895253DB116C4EF500CABF00 /* FileStreamProxy.h */, 12981 12990 895253D4116C4C6800CABF00 /* FileStream.cpp */, 12982 12991 895253D5116C4C6800CABF00 /* FileStream.h */, … … 18848 18857 9FA37EFB1172FDA600C4CD55 /* JSScriptProfile.h in Headers */, 18849 18858 9FA37EFD1172FDA600C4CD55 /* JSScriptProfileNode.h in Headers */, 18859 895253DD116C4EF500CABF00 /* FileStreamProxy.h in Headers */, 18860 895253DF116C4F0600CABF00 /* FileThreadTask.h in Headers */, 18850 18861 ); 18851 18862 runOnlyForDeploymentPostprocessing = 0; … … 21082 21093 9FA37EFA1172FDA600C4CD55 /* JSScriptProfile.cpp in Sources */, 21083 21094 9FA37EFC1172FDA600C4CD55 /* JSScriptProfileNode.cpp in Sources */, 21095 895253DC116C4EF500CABF00 /* FileStreamProxy.cpp in Sources */, 21084 21096 ); 21085 21097 runOnlyForDeploymentPostprocessing = 0; -
trunk/WebCore/html/FileStream.cpp
r57229 r57749 57 57 } 58 58 59 void FileStream::stop() 60 { 61 ASSERT(!isMainThread()); 62 close(); 63 m_client->didStop(); 64 } 65 59 66 void FileStream::openForRead(Blob*) 60 67 { -
trunk/WebCore/html/FileStream.h
r57229 r57749 54 54 55 55 void start(); 56 void stop(); 56 57 57 58 void openForRead(Blob*); -
trunk/WebCore/html/FileStreamClient.h
r57229 r57749 49 49 // For both reading and writing. 50 50 virtual void didStart() { } 51 virtual void didStop() { } 51 52 virtual void didFinish() { } 52 53 virtual void didFail(ExceptionCode) { }
Note: See TracChangeset
for help on using the changeset viewer.