Changeset 29399 in webkit
- Timestamp:
- Jan 11, 2008 3:32:46 AM (16 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 9 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r29398 r29399 1 2008-01-11 Rodney Dawes <dobey@wayofthemonkey.com> 2 3 Reviewed by Anders Carlsson. 4 5 Bug 16779: Make the PluginStream implementation be shared across platforms 6 http://bugs.webkit.org/show_bug.cgi?id=16779 7 8 Add the new shared PluginStream files to the GTK+ and Win32 builds. 9 Add PluginStreamClient class for the streamDidFinishLoading method. 10 Add open/close/write methods to FileSystem for temporary file handling. 11 Add PluginDebug.h and npfunctions.h for shared PluginStream. 12 Add shared PluginStream. 13 Remove PluginStreamWin. 14 Update PluginViewWin to use shared PluginStream and PluginStreamClass. 15 16 * GNUmakefile.am: 17 * WebCore.pro: 18 * WebCore.vcproj/WebCore.vcproj: 19 * platform/FileSystem.h: 20 * platform/gtk/FileSystemGtk.cpp: 21 * platform/win/FileSystemWin.cpp: 22 * plugins/PluginDebug.h: 23 * plugins/PluginStream.cpp: 24 * plugins/PluginStream.h: 25 * plugins/npfunctions.h: 26 * plugins/win/PluginDebug: Moved to PluginDebug.h. 27 * plugins/win/PluginStreamWin.cpp: Moved to PluginStream.cpp. 28 * plugins/win/PluginStreamWin.h: Moved to PluginStream.h 29 * plugins/win/PluginViewWin.cpp: 30 * plugins/win/PluginViewWin.h: 31 * plugins/win/npfunctions.h: Moved to npfunctions.h 32 1 33 2008-01-11 Geoffrey Garen <ggaren@apple.com> 2 34 -
trunk/WebCore/GNUmakefile.am
r29386 r29399 6 6 7 7 webcore_cppflags += \ 8 -I $(srcdir)/JavaScriptCore/bindings \ 8 9 -I $(srcdir)/WebCore \ 9 10 -I $(srcdir)/WebCore/ForwardingHeaders \ … … 845 846 WebCore/platform/text/UnicodeRange.cpp \ 846 847 WebCore/platform/Widget.cpp \ 848 WebCore/plugins/PluginStream.cpp \ 847 849 WebCore/rendering/AutoTableLayout.cpp \ 848 850 WebCore/rendering/bidi.cpp \ -
trunk/WebCore/WebCore.pro
r29386 r29399 777 777 platform/text/UnicodeRange.cpp \ 778 778 platform/Widget.cpp \ 779 plugins/PluginStream.cpp \ 779 780 rendering/AutoTableLayout.cpp \ 780 781 rendering/bidi.cpp \ -
trunk/WebCore/WebCore.vcproj/WebCore.vcproj
r29396 r29399 44 44 Name="VCCLCompilerTool" 45 45 Optimization="0" 46 AdditionalIncludeDirectories=""$(ProjectDir)..\";"$(ProjectDir)..";"$(ProjectDir)..\css";"$(ProjectDir)..\editing";"$(ProjectDir)..\rendering";"$(ProjectDir)..\bindings\js";"$(ProjectDir)..\dom";"$(ProjectDir)..\history";"$(ProjectDir)..\html";"$(ProjectDir)..\bridge";"$(ProjectDir)..\bridge\win";"$(ProjectDir)..\loader";"$(ProjectDir)..\loader\icon";"$(ProjectDir)..\page";"$(ProjectDir)..\platform";"$(ProjectDir)..\platform\sql";"$(ProjectDir)..\platform\win";"$(ProjectDir)..\platform\network";"$(ProjectDir)..\platform\network\win";"$(ProjectDir)..\platform\cf";"$(ProjectDir)..\platform\network\cf";"$(ProjectDir)..\platform\graphics";"$(ProjectDir)..\platform\text";"$(ProjectDir)..\platform\graphics\cairo";"$(ProjectDir)..\platform\graphics\cg";"$(ProjectDir)..\platform\graphics\win";"$(ProjectDir)..\platform\image-decoders";"$(ProjectDir)..\platform\image-decoders\bmp";"$(ProjectDir)..\platform\image-decoders\gif";"$(ProjectDir)..\platform\image-decoders\ico";"$(ProjectDir)..\platform\image-decoders\jpeg";"$(ProjectDir)..\platform\image-decoders\png";"$(ProjectDir)..\platform\image-decoders\xbm";"$(ProjectDir)..\platform\image-decoders\zlib";"$(ProjectDir)..\xml";"$(WebKitOutputDir)\obj\WebCore\DerivedSources";"$(ProjectDir)..\plugins \win";"$(ProjectDir)..\platform\cairo\pixman\src";"$(ProjectDir)..\platform\cairo\cairo\src";"$(ProjectDir)..\svg\graphics";"$(ProjectDir)..\svg\graphics\cg";"$(ProjectDir)..\svg\graphics\filters";"$(ProjectDir)..\kcanvas";"$(ProjectDir)..\kcanvas\device";"$(ProjectDir)..\kcanvas\device\quartz";"$(ProjectDir)..\svg";"$(ProjectDir)..\storage";"$(WebKitOutputDir)\include";"$(WebKitOutputDir)\include\JavaScriptCore";"$(ProjectDir)..\ForwardingHeaders";"$(WebKitLibrariesDir)\include";"$(WebKitLibrariesDir)\include\icu";"$(WebKitLibrariesDir)\include\iconv";"$(WebKitLibrariesDir)\include\pthreads";"$(WebKitLibrariesDir)\include\sqlite";"$(WebKitLibrariesDir)\include\JavaScriptCore";"$(WebKitLibrariesDir)\Include\CoreFoundation\OSXCompatibilityHeaders";"$(WebKitLibrariesDir)\Include\CoreFoundation\OSXCompatibilityHeaders\GNUCompatibility";$(WebKitOutputDir)\include\QtMovieWin"46 AdditionalIncludeDirectories=""$(ProjectDir)..\";"$(ProjectDir)..";"$(ProjectDir)..\css";"$(ProjectDir)..\editing";"$(ProjectDir)..\rendering";"$(ProjectDir)..\bindings\js";"$(ProjectDir)..\dom";"$(ProjectDir)..\history";"$(ProjectDir)..\html";"$(ProjectDir)..\bridge";"$(ProjectDir)..\bridge\win";"$(ProjectDir)..\loader";"$(ProjectDir)..\loader\icon";"$(ProjectDir)..\page";"$(ProjectDir)..\platform";"$(ProjectDir)..\platform\sql";"$(ProjectDir)..\platform\win";"$(ProjectDir)..\platform\network";"$(ProjectDir)..\platform\network\win";"$(ProjectDir)..\platform\cf";"$(ProjectDir)..\platform\network\cf";"$(ProjectDir)..\platform\graphics";"$(ProjectDir)..\platform\text";"$(ProjectDir)..\platform\graphics\cairo";"$(ProjectDir)..\platform\graphics\cg";"$(ProjectDir)..\platform\graphics\win";"$(ProjectDir)..\platform\image-decoders";"$(ProjectDir)..\platform\image-decoders\bmp";"$(ProjectDir)..\platform\image-decoders\gif";"$(ProjectDir)..\platform\image-decoders\ico";"$(ProjectDir)..\platform\image-decoders\jpeg";"$(ProjectDir)..\platform\image-decoders\png";"$(ProjectDir)..\platform\image-decoders\xbm";"$(ProjectDir)..\platform\image-decoders\zlib";"$(ProjectDir)..\xml";"$(WebKitOutputDir)\obj\WebCore\DerivedSources";"$(ProjectDir)..\plugins";"$(ProjectDir)..\plugins\win";"$(ProjectDir)..\platform\cairo\pixman\src";"$(ProjectDir)..\platform\cairo\cairo\src";"$(ProjectDir)..\svg\graphics";"$(ProjectDir)..\svg\graphics\cg";"$(ProjectDir)..\svg\graphics\filters";"$(ProjectDir)..\kcanvas";"$(ProjectDir)..\kcanvas\device";"$(ProjectDir)..\kcanvas\device\quartz";"$(ProjectDir)..\svg";"$(ProjectDir)..\storage";"$(WebKitOutputDir)\include";"$(WebKitOutputDir)\include\JavaScriptCore";"$(ProjectDir)..\ForwardingHeaders";"$(WebKitLibrariesDir)\include";"$(WebKitLibrariesDir)\include\icu";"$(WebKitLibrariesDir)\include\iconv";"$(WebKitLibrariesDir)\include\pthreads";"$(WebKitLibrariesDir)\include\sqlite";"$(WebKitLibrariesDir)\include\JavaScriptCore";"$(WebKitLibrariesDir)\Include\CoreFoundation\OSXCompatibilityHeaders";"$(WebKitLibrariesDir)\Include\CoreFoundation\OSXCompatibilityHeaders\GNUCompatibility";$(WebKitOutputDir)\include\QtMovieWin" 47 47 PreprocessorDefinitions="WIN32;__WIN32__;_SCL_SECURE_NO_DEPRECATE;_CRT_SECURE_NO_DEPRECATE;ENABLE_XSLT;ENABLE_XPATH;ENABLE_SVG;ENABLE_SVG_AS_IMAGE;ENABLE_SVG_USE;ENABLE_SVG_FONTS;WEBCORE_CONTEXT_MENUS;USE_SAFARI_THEME;ENABLE_VIDEO" 48 48 MinimalRebuild="true" … … 87 87 <Tool 88 88 Name="VCPostBuildEventTool" 89 CommandLine="mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\bindings"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\kjs"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\pcre"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode\icu"

xcopy /y /d "$(ProjectDir)..\config.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(WebKitOutputDir)\obj\WebCore\DerivedSources\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\loader\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\loader\icon\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\history\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\html\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\css\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\cf\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\graphics\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\graphics\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\text\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\network\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\network\cf\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\network\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\sql\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\cairo\cairo\src\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\bindings\js\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\bridge\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\bridge\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\page\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\plugins\ win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\rendering\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\editing\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\dom\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\xml\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\svg\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\storage\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\bindings\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\bindings"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\kjs\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\kjs"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\pcre\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\pcre"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\wtf\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\wtf\unicode\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\wtf\unicode\icu\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode\icu"

mkdir 2>NUL "$(WebKitOutputDir)\bin\WebKit.resources\inspector"
xcopy /y /d /s /exclude:xcopy.excludes "$(ProjectDir)\..\page\inspector\*" "$(WebKitOutputDir)\bin\WebKit.resources\inspector"
"89 CommandLine="mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\bindings"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\kjs"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\pcre"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode\icu"

xcopy /y /d "$(ProjectDir)..\config.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(WebKitOutputDir)\obj\WebCore\DerivedSources\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\loader\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\loader\icon\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\history\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\html\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\css\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\cf\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\graphics\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\graphics\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\text\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\network\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\network\cf\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\network\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\sql\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\cairo\cairo\src\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\bindings\js\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\bridge\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\bridge\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\page\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\plugins\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\plugins\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\rendering\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\editing\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\dom\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\xml\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\svg\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\storage\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\bindings\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\bindings"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\kjs\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\kjs"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\pcre\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\pcre"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\wtf\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\wtf\unicode\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\wtf\unicode\icu\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode\icu"

mkdir 2>NUL "$(WebKitOutputDir)\bin\WebKit.resources\inspector"
xcopy /y /d /s /exclude:xcopy.excludes "$(ProjectDir)\..\page\inspector\*" "$(WebKitOutputDir)\bin\WebKit.resources\inspector"
" 90 90 /> 91 91 </Configuration> … … 118 118 <Tool 119 119 Name="VCCLCompilerTool" 120 AdditionalIncludeDirectories=""$(ProjectDir)..\";"$(ProjectDir)..";"$(ProjectDir)..\css";"$(ProjectDir)..\editing";"$(ProjectDir)..\rendering";"$(ProjectDir)..\bindings\js";"$(ProjectDir)..\dom";"$(ProjectDir)..\history";"$(ProjectDir)..\html";"$(ProjectDir)..\bridge";"$(ProjectDir)..\bridge\win";"$(ProjectDir)..\loader";"$(ProjectDir)..\loader\icon";"$(ProjectDir)..\page";"$(ProjectDir)..\platform";"$(ProjectDir)..\platform\sql";"$(ProjectDir)..\platform\win";"$(ProjectDir)..\platform\network";"$(ProjectDir)..\platform\network\win";"$(ProjectDir)..\platform\cf";"$(ProjectDir)..\platform\network\cf";"$(ProjectDir)..\platform\graphics";"$(ProjectDir)..\platform\text";"$(ProjectDir)..\platform\graphics\cairo";"$(ProjectDir)..\platform\graphics\cg";"$(ProjectDir)..\platform\graphics\win";"$(ProjectDir)..\platform\image-decoders";"$(ProjectDir)..\platform\image-decoders\bmp";"$(ProjectDir)..\platform\image-decoders\gif";"$(ProjectDir)..\platform\image-decoders\ico";"$(ProjectDir)..\platform\image-decoders\jpeg";"$(ProjectDir)..\platform\image-decoders\png";"$(ProjectDir)..\platform\image-decoders\xbm";"$(ProjectDir)..\platform\image-decoders\zlib";"$(ProjectDir)..\xml";"$(WebKitOutputDir)\obj\WebCore\DerivedSources";"$(ProjectDir)..\plugins \win";"$(ProjectDir)..\platform\cairo\pixman\src";"$(ProjectDir)..\platform\cairo\cairo\src";"$(ProjectDir)..\svg\graphics";"$(ProjectDir)..\svg\graphics\cg";"$(ProjectDir)..\svg\graphics\filters";"$(ProjectDir)..\kcanvas";"$(ProjectDir)..\kcanvas\device";"$(ProjectDir)..\kcanvas\device\quartz";"$(ProjectDir)..\svg";"$(ProjectDir)..\storage";"$(WebKitOutputDir)\include";"$(WebKitOutputDir)\include\JavaScriptCore";"$(ProjectDir)..\ForwardingHeaders";"$(WebKitLibrariesDir)\include";"$(WebKitLibrariesDir)\include\icu";"$(WebKitLibrariesDir)\include\iconv";"$(WebKitLibrariesDir)\include\pthreads";"$(WebKitLibrariesDir)\include\sqlite";"$(WebKitLibrariesDir)\include\JavaScriptCore";"$(WebKitLibrariesDir)\Include\CoreFoundation\OSXCompatibilityHeaders";"$(WebKitLibrariesDir)\Include\CoreFoundation\OSXCompatibilityHeaders\GNUCompatibility";$(WebKitOutputDir)\include\QtMovieWin"120 AdditionalIncludeDirectories=""$(ProjectDir)..\";"$(ProjectDir)..";"$(ProjectDir)..\css";"$(ProjectDir)..\editing";"$(ProjectDir)..\rendering";"$(ProjectDir)..\bindings\js";"$(ProjectDir)..\dom";"$(ProjectDir)..\history";"$(ProjectDir)..\html";"$(ProjectDir)..\bridge";"$(ProjectDir)..\bridge\win";"$(ProjectDir)..\loader";"$(ProjectDir)..\loader\icon";"$(ProjectDir)..\page";"$(ProjectDir)..\platform";"$(ProjectDir)..\platform\sql";"$(ProjectDir)..\platform\win";"$(ProjectDir)..\platform\network";"$(ProjectDir)..\platform\network\win";"$(ProjectDir)..\platform\cf";"$(ProjectDir)..\platform\network\cf";"$(ProjectDir)..\platform\graphics";"$(ProjectDir)..\platform\text";"$(ProjectDir)..\platform\graphics\cairo";"$(ProjectDir)..\platform\graphics\cg";"$(ProjectDir)..\platform\graphics\win";"$(ProjectDir)..\platform\image-decoders";"$(ProjectDir)..\platform\image-decoders\bmp";"$(ProjectDir)..\platform\image-decoders\gif";"$(ProjectDir)..\platform\image-decoders\ico";"$(ProjectDir)..\platform\image-decoders\jpeg";"$(ProjectDir)..\platform\image-decoders\png";"$(ProjectDir)..\platform\image-decoders\xbm";"$(ProjectDir)..\platform\image-decoders\zlib";"$(ProjectDir)..\xml";"$(WebKitOutputDir)\obj\WebCore\DerivedSources";"$(ProjectDir)..\plugins";"$(ProjectDir)..\plugins\win";"$(ProjectDir)..\platform\cairo\pixman\src";"$(ProjectDir)..\platform\cairo\cairo\src";"$(ProjectDir)..\svg\graphics";"$(ProjectDir)..\svg\graphics\cg";"$(ProjectDir)..\svg\graphics\filters";"$(ProjectDir)..\kcanvas";"$(ProjectDir)..\kcanvas\device";"$(ProjectDir)..\kcanvas\device\quartz";"$(ProjectDir)..\svg";"$(ProjectDir)..\storage";"$(WebKitOutputDir)\include";"$(WebKitOutputDir)\include\JavaScriptCore";"$(ProjectDir)..\ForwardingHeaders";"$(WebKitLibrariesDir)\include";"$(WebKitLibrariesDir)\include\icu";"$(WebKitLibrariesDir)\include\iconv";"$(WebKitLibrariesDir)\include\pthreads";"$(WebKitLibrariesDir)\include\sqlite";"$(WebKitLibrariesDir)\include\JavaScriptCore";"$(WebKitLibrariesDir)\Include\CoreFoundation\OSXCompatibilityHeaders";"$(WebKitLibrariesDir)\Include\CoreFoundation\OSXCompatibilityHeaders\GNUCompatibility";$(WebKitOutputDir)\include\QtMovieWin" 121 121 PreprocessorDefinitions="NDEBUG;WIN32;__WIN32__;_SCL_SECURE_NO_DEPRECATE;_CRT_SECURE_NO_DEPRECATE;ENABLE_XSLT;ENABLE_XPATH;ENABLE_SVG;ENABLE_SVG_AS_IMAGE;ENABLE_SVG_USE;ENABLE_SVG_FONTS;WEBCORE_CONTEXT_MENUS;USE_SAFARI_THEME;ENABLE_VIDEO" 122 122 ExceptionHandling="0" … … 159 159 <Tool 160 160 Name="VCPostBuildEventTool" 161 CommandLine="mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\bindings"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\kjs"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\pcre"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode\icu"

xcopy /y /d "$(ProjectDir)..\config.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(WebKitOutputDir)\obj\WebCore\DerivedSources\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\loader\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\loader\icon\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\history\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\html\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\css\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\cf\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\graphics\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\graphics\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\text\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\network\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\network\cf\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\network\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\sql\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\cairo\cairo\src\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\bindings\js\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\bridge\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\bridge\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\page\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\plugins\ win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\rendering\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\editing\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\dom\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\xml\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\svg\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\storage\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\bindings\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\bindings"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\kjs\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\kjs"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\pcre\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\pcre"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\wtf\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\wtf\unicode\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\wtf\unicode\icu\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode\icu"

mkdir 2>NUL "$(WebKitOutputDir)\bin\WebKit.resources\inspector"
xcopy /y /d /s /exclude:xcopy.excludes "$(ProjectDir)\..\page\inspector\*" "$(WebKitOutputDir)\bin\WebKit.resources\inspector"
"161 CommandLine="mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\bindings"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\kjs"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\pcre"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode\icu"

xcopy /y /d "$(ProjectDir)..\config.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(WebKitOutputDir)\obj\WebCore\DerivedSources\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\loader\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\loader\icon\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\history\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\html\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\css\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\cf\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\graphics\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\graphics\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\text\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\network\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\network\cf\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\network\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\sql\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\cairo\cairo\src\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\bindings\js\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\bridge\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\bridge\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\page\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\plugins\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\plugins\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\rendering\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\editing\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\dom\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\xml\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\svg\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\storage\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\bindings\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\bindings"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\kjs\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\kjs"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\pcre\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\pcre"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\wtf\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\wtf\unicode\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\wtf\unicode\icu\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode\icu"

mkdir 2>NUL "$(WebKitOutputDir)\bin\WebKit.resources\inspector"
xcopy /y /d /s /exclude:xcopy.excludes "$(ProjectDir)\..\page\inspector\*" "$(WebKitOutputDir)\bin\WebKit.resources\inspector"
" 162 162 /> 163 163 </Configuration> … … 190 190 Name="VCCLCompilerTool" 191 191 Optimization="0" 192 AdditionalIncludeDirectories=""$(ProjectDir)..\";"$(ProjectDir)..";"$(ProjectDir)..\css";"$(ProjectDir)..\editing";"$(ProjectDir)..\rendering";"$(ProjectDir)..\bindings\js";"$(ProjectDir)..\dom";"$(ProjectDir)..\history";"$(ProjectDir)..\html";"$(ProjectDir)..\bridge";"$(ProjectDir)..\bridge\win";"$(ProjectDir)..\loader";"$(ProjectDir)..\loader\icon";"$(ProjectDir)..\page";"$(ProjectDir)..\platform";"$(ProjectDir)..\platform\sql";"$(ProjectDir)..\platform\win";"$(ProjectDir)..\platform\network";"$(ProjectDir)..\platform\network\win";"$(ProjectDir)..\platform\cf";"$(ProjectDir)..\platform\network\cf";"$(ProjectDir)..\platform\graphics";"$(ProjectDir)..\platform\text";"$(ProjectDir)..\platform\graphics\cairo";"$(ProjectDir)..\platform\graphics\cg";"$(ProjectDir)..\platform\graphics\win";"$(ProjectDir)..\platform\image-decoders";"$(ProjectDir)..\platform\image-decoders\bmp";"$(ProjectDir)..\platform\image-decoders\gif";"$(ProjectDir)..\platform\image-decoders\ico";"$(ProjectDir)..\platform\image-decoders\jpeg";"$(ProjectDir)..\platform\image-decoders\png";"$(ProjectDir)..\platform\image-decoders\xbm";"$(ProjectDir)..\platform\image-decoders\zlib";"$(ProjectDir)..\xml";"$(WebKitOutputDir)\obj\WebCore\DerivedSources";"$(ProjectDir)..\plugins \win";"$(ProjectDir)..\platform\cairo\pixman\src";"$(ProjectDir)..\platform\cairo\cairo\src";"$(ProjectDir)..\svg\graphics";"$(ProjectDir)..\svg\graphics\cg";"$(ProjectDir)..\svg\graphics\filters";"$(ProjectDir)..\kcanvas";"$(ProjectDir)..\kcanvas\device";"$(ProjectDir)..\kcanvas\device\quartz";"$(ProjectDir)..\svg";"$(ProjectDir)..\storage";"$(WebKitOutputDir)\include";"$(WebKitOutputDir)\include\JavaScriptCore";"$(ProjectDir)..\ForwardingHeaders";"$(WebKitLibrariesDir)\include";"$(WebKitLibrariesDir)\include\icu";"$(WebKitLibrariesDir)\include\iconv";"$(WebKitLibrariesDir)\include\pthreads";"$(WebKitLibrariesDir)\include\sqlite";"$(WebKitLibrariesDir)\include\JavaScriptCore";"$(WebKitLibrariesDir)\Include\CoreFoundation\OSXCompatibilityHeaders";"$(WebKitLibrariesDir)\Include\CoreFoundation\OSXCompatibilityHeaders\GNUCompatibility";$(WebKitOutputDir)\include\QtMovieWin"192 AdditionalIncludeDirectories=""$(ProjectDir)..\";"$(ProjectDir)..";"$(ProjectDir)..\css";"$(ProjectDir)..\editing";"$(ProjectDir)..\rendering";"$(ProjectDir)..\bindings\js";"$(ProjectDir)..\dom";"$(ProjectDir)..\history";"$(ProjectDir)..\html";"$(ProjectDir)..\bridge";"$(ProjectDir)..\bridge\win";"$(ProjectDir)..\loader";"$(ProjectDir)..\loader\icon";"$(ProjectDir)..\page";"$(ProjectDir)..\platform";"$(ProjectDir)..\platform\sql";"$(ProjectDir)..\platform\win";"$(ProjectDir)..\platform\network";"$(ProjectDir)..\platform\network\win";"$(ProjectDir)..\platform\cf";"$(ProjectDir)..\platform\network\cf";"$(ProjectDir)..\platform\graphics";"$(ProjectDir)..\platform\text";"$(ProjectDir)..\platform\graphics\cairo";"$(ProjectDir)..\platform\graphics\cg";"$(ProjectDir)..\platform\graphics\win";"$(ProjectDir)..\platform\image-decoders";"$(ProjectDir)..\platform\image-decoders\bmp";"$(ProjectDir)..\platform\image-decoders\gif";"$(ProjectDir)..\platform\image-decoders\ico";"$(ProjectDir)..\platform\image-decoders\jpeg";"$(ProjectDir)..\platform\image-decoders\png";"$(ProjectDir)..\platform\image-decoders\xbm";"$(ProjectDir)..\platform\image-decoders\zlib";"$(ProjectDir)..\xml";"$(WebKitOutputDir)\obj\WebCore\DerivedSources";"$(ProjectDir)..\plugins";"$(ProjectDir)..\plugins\win";"$(ProjectDir)..\platform\cairo\pixman\src";"$(ProjectDir)..\platform\cairo\cairo\src";"$(ProjectDir)..\svg\graphics";"$(ProjectDir)..\svg\graphics\cg";"$(ProjectDir)..\svg\graphics\filters";"$(ProjectDir)..\kcanvas";"$(ProjectDir)..\kcanvas\device";"$(ProjectDir)..\kcanvas\device\quartz";"$(ProjectDir)..\svg";"$(ProjectDir)..\storage";"$(WebKitOutputDir)\include";"$(WebKitOutputDir)\include\JavaScriptCore";"$(ProjectDir)..\ForwardingHeaders";"$(WebKitLibrariesDir)\include";"$(WebKitLibrariesDir)\include\icu";"$(WebKitLibrariesDir)\include\iconv";"$(WebKitLibrariesDir)\include\pthreads";"$(WebKitLibrariesDir)\include\sqlite";"$(WebKitLibrariesDir)\include\JavaScriptCore";"$(WebKitLibrariesDir)\Include\CoreFoundation\OSXCompatibilityHeaders";"$(WebKitLibrariesDir)\Include\CoreFoundation\OSXCompatibilityHeaders\GNUCompatibility";$(WebKitOutputDir)\include\QtMovieWin" 193 193 PreprocessorDefinitions="WIN32;__WIN32__;_SCL_SECURE_NO_DEPRECATE;_CRT_SECURE_NO_DEPRECATE;ENABLE_XSLT;ENABLE_XPATH;ENABLE_SVG;ENABLE_SVG_AS_IMAGE;ENABLE_SVG_USE;ENABLE_SVG_FONTS;WEBCORE_CONTEXT_MENUS;USE_SAFARI_THEME;ENABLE_VIDEO" 194 194 MinimalRebuild="true" … … 233 233 <Tool 234 234 Name="VCPostBuildEventTool" 235 CommandLine="mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\bindings"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\kjs"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\pcre"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode\icu"

xcopy /y /d "$(ProjectDir)..\config.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(WebKitOutputDir)\obj\WebCore\DerivedSources\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\loader\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\loader\icon\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\history\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\html\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\css\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\cf\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\graphics\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\graphics\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\text\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\network\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\network\cf\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\network\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\sql\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\cairo\cairo\src\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\bindings\js\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\bridge\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\bridge\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\page\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\plugins\ win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\rendering\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\editing\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\dom\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\xml\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\svg\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\storage\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\bindings\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\bindings"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\kjs\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\kjs"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\pcre\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\pcre"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\wtf\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\wtf\unicode\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\wtf\unicode\icu\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode\icu"

mkdir 2>NUL "$(WebKitOutputDir)\bin\WebKit.resources\inspector"
xcopy /y /d /s /exclude:xcopy.excludes "$(ProjectDir)\..\page\inspector\*" "$(WebKitOutputDir)\bin\WebKit.resources\inspector"
"235 CommandLine="mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\bindings"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\kjs"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\pcre"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode"
mkdir 2>NUL "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode\icu"

xcopy /y /d "$(ProjectDir)..\config.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(WebKitOutputDir)\obj\WebCore\DerivedSources\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\loader\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\loader\icon\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\history\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\html\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\css\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\cf\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\graphics\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\graphics\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\text\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\network\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\network\cf\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\network\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\sql\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\platform\cairo\cairo\src\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\bindings\js\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\bridge\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\bridge\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\page\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\plugins\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\plugins\win\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\rendering\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\editing\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\dom\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\xml\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\svg\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)..\storage\*.h" "$(WebKitOutputDir)\include\WebCore"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\bindings\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\bindings"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\kjs\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\kjs"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\pcre\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\pcre"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\wtf\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\wtf\unicode\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode"
xcopy /y /d "$(ProjectDir)\..\ForwardingHeaders\wtf\unicode\icu\*.h" "$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode\icu"

mkdir 2>NUL "$(WebKitOutputDir)\bin\WebKit.resources\inspector"
xcopy /y /d /s /exclude:xcopy.excludes "$(ProjectDir)\..\page\inspector\*" "$(WebKitOutputDir)\bin\WebKit.resources\inspector"
" 236 236 /> 237 237 </Configuration> … … 7961 7961 Name="plugins" 7962 7962 > 7963 <File 7964 RelativePath="..\plugins\npfunctions.h" 7965 > 7966 </File> 7967 <File 7968 RelativePath="..\plugins\PluginDebug.h" 7969 > 7970 </File> 7971 <File 7972 RelativePath="..\plugins\PluginStream.cpp" 7973 > 7974 </File> 7975 <File 7976 RelativePath="..\plugins\PluginStream.h" 7977 > 7978 </File> 7963 7979 <Filter 7964 7980 Name="win" … … 7969 7985 </File> 7970 7986 <File 7971 RelativePath="..\plugins\win\npfunctions.h"7972 >7973 </File>7974 <File7975 7987 RelativePath="..\plugins\win\PluginDatabaseWin.cpp" 7976 7988 > … … 7981 7993 </File> 7982 7994 <File 7983 RelativePath="..\plugins\win\PluginDebug.h"7984 >7985 </File>7986 <File7987 7995 RelativePath="..\plugins\win\PlugInInfoStoreWin.cpp" 7988 7996 > … … 7994 8002 <File 7995 8003 RelativePath="..\plugins\win\PluginPackageWin.h" 7996 >7997 </File>7998 <File7999 RelativePath="..\plugins\win\PluginStreamWin.cpp"8000 >8001 </File>8002 <File8003 RelativePath="..\plugins\win\PluginStreamWin.h"8004 8004 > 8005 8005 </File> -
trunk/WebCore/platform/FileSystem.h
r26991 r29399 1 1 /* 2 2 * Copyright (C) 2007 Apple Inc. All rights reserved. 3 * Copyright (C) 2008 Collabora, Ltd. All rights reserved. 3 4 * 4 5 * Redistribution and use in source and binary forms, with or without … … 40 41 class String; 41 42 43 #if PLATFORM(WIN) 44 typedef HANDLE PlatformFileHandle; 45 const PlatformFileHandle invalidPlatformFileHandle = INVALID_HANDLE_VALUE; 46 #else 47 typedef int PlatformFileHandle; 48 const PlatformFileHandle invalidPlatformFileHandle = -1; 49 #endif 50 42 51 bool fileExists(const String&); 43 52 bool deleteFile(const String&); … … 48 57 49 58 CString fileSystemRepresentation(const String&); 59 60 inline bool isHandleValid(const PlatformFileHandle& handle) { return handle != invalidPlatformFileHandle; } 61 62 /* Prefix is what the filename should be prefixed with, not the full path */ 63 CString openTemporaryFile(const char* prefix, PlatformFileHandle&); 64 void closeFile(PlatformFileHandle&); 65 int writeToFile(PlatformFileHandle, const char* data, int length); 50 66 51 67 #if PLATFORM(WIN) -
trunk/WebCore/platform/gtk/FileSystemGtk.cpp
r28484 r29399 1 1 /* 2 2 * Copyright (C) 2007 Holger Hans Peter Freyther 3 * Copyright (C) 2008 Collabora, Ltd. 3 4 * 4 5 * This library is free software; you can redistribute it and/or … … 26 27 #include <glib.h> 27 28 #include <glib/gstdio.h> 29 #include <glib/gutils.h> 28 30 29 31 namespace WebCore { … … 90 92 return result == 0; 91 93 } 94 95 CString openTemporaryFile(const char* prefix, PlatformFileHandle& handle) 96 { 97 gchar* filename = g_strdup_printf("%sXXXXXX", prefix); 98 gchar* tempPath = g_build_filename(g_get_tmp_dir(), filename, NULL); 99 g_free(filename); 100 101 int fileDescriptor = g_mkstemp(tempPath); 102 if (!isHandleValid(fileDescriptor)) { 103 LOG_ERROR("Can't create a temporary file."); 104 g_free(tempPath); 105 return 0; 106 } 107 CString tempFilePath = tempPath; 108 g_free(tempPath); 109 110 handle = fileDescriptor; 111 return tempFilePath; 92 112 } 113 114 void closeFile(PlatformFileHandle& handle) 115 { 116 if (isHandleValid(handle)) { 117 close(handle); 118 handle = invalidPlatformFileHandle; 119 } 120 } 121 122 int writeToFile(PlatformFileHandle handle, const char* data, int length) 123 { 124 int totalBytesWritten = 0; 125 while (totalBytesWritten < length) { 126 int bytesWritten = write(handle, data, length - totalBytesWritten); 127 if (bytesWritten < 0) 128 return -1; 129 totalBytesWritten += bytesWritten; 130 } 131 132 return totalBytesWritten; 133 } 134 } -
trunk/WebCore/platform/win/FileSystemWin.cpp
r28514 r29399 1 1 /* 2 2 * Copyright (C) 2007 Apple Inc. All rights reserved. 3 * Copyright (C) 2008 Collabora, Ltd. All rights reserved. 3 4 * 4 5 * Redistribution and use in source and binary forms, with or without … … 155 156 } 156 157 158 159 CString openTemporaryFile(const char* prefix, PlatformFileHandle& handle) 160 { 161 char tempPath[MAX_PATH]; 162 int tempPathLength = ::GetTempPathA(_countof(tempPath), tempPath); 163 if (tempPathLength <= 0 || tempPathLength > _countof(tempPath)) 164 return 0; 165 166 char tempFile[MAX_PATH]; 167 if (::GetTempFileNameA(tempPath, prefix, 0, tempFile) > 0) { 168 HANDLE tempHandle = ::CreateFileA(tempFile, GENERIC_READ | GENERIC_WRITE, 0, 0, 169 CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); 170 171 if (isHandleValid(tempHandle)) { 172 handle = tempHandle; 173 return tempFile; 174 } 175 } 176 return 0; 177 } 178 179 void closeFile(PlatformFileHandle& handle) 180 { 181 if (isHandleValid(handle)) { 182 ::CloseHandle(handle); 183 handle = invalidPlatformFileHandle; 184 } 185 } 186 187 int writeToFile(PlatformFileHandle handle, const char* data, int length) 188 { 189 if (!isHandleValid(handle)) 190 return -1; 191 192 DWORD bytesWritten; 193 bool success = WriteFile(handle, data, length, &bytesWritten, 0); 194 195 if (!success) 196 return -1; 197 return static_cast<int>(bytesWritten); 198 } 157 199 String localUserSpecificStorageDirectory() 158 200 { -
trunk/WebCore/plugins/PluginDebug.h
r29398 r29399 27 27 #define PLUGIN_DEBUG_H__ 28 28 29 #include "np api.h"29 #include "npruntime_internal.h" 30 30 31 static c har* errorStrings[] = {31 static const char* errorStrings[] = { 32 32 "No errors occurred.", /* NPERR_NO_ERROR */ 33 33 "Error with no specific error code occurred.", /* NPERR_GENERIC_ERROR */ -
trunk/WebCore/plugins/PluginStream.cpp
r29398 r29399 1 1 /* 2 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 3 * Copyright (C) 2008 Collabora, Ltd. All rights reserved. 3 4 * 4 5 * Redistribution and use in source and binary forms, with or without … … 25 26 26 27 #include "config.h" 27 #include "PluginStream Win.h"28 #include "PluginStream.h" 28 29 29 30 #include "CString.h" … … 32 33 #include "FrameLoader.h" 33 34 #include "PluginDebug.h" 34 #include "PluginPackageWin.h"35 #include "PluginViewWin.h"36 35 #include "SharedBuffer.h" 37 36 #include "SubresourceLoader.h" … … 53 52 } 54 53 55 PluginStream Win::PluginStreamWin(PluginViewWin* pluginView, Frame* frame, const ResourceRequest& resourceRequest, bool sendNotification, void* notifyData)54 PluginStream::PluginStream(PluginStreamClient* client, Frame* frame, const ResourceRequest& resourceRequest, bool sendNotification, void* notifyData, const NPPluginFuncs* pluginFuncs, NPP instance) 56 55 : m_resourceRequest(resourceRequest) 56 , m_client(client) 57 57 , m_frame(frame) 58 , m_pluginView(pluginView)59 58 , m_notifyData(notifyData) 60 59 , m_sendNotification(sendNotification) 60 , m_streamState(StreamBeforeStarted) 61 61 , m_loadManually(false) 62 , m_streamState(StreamBeforeStarted) 63 , m_delayDeliveryTimer(this, &PluginStreamWin::delayDeliveryTimerFired) 62 , m_delayDeliveryTimer(this, &PluginStream::delayDeliveryTimerFired) 64 63 , m_deliveryData(0) 65 , m_tempFileHandle( INVALID_HANDLE_VALUE)66 , m_pluginFuncs(plugin View->plugin()->pluginFuncs())67 , m_instance( pluginView->instance())68 { 69 ASSERT(m_ pluginView);64 , m_tempFileHandle(invalidPlatformFileHandle) 65 , m_pluginFuncs(pluginFuncs) 66 , m_instance(instance) 67 { 68 ASSERT(m_instance); 70 69 71 70 m_stream.url = 0; … … 79 78 } 80 79 81 PluginStream Win::~PluginStreamWin()80 PluginStream::~PluginStream() 82 81 { 83 82 ASSERT(m_streamState != StreamStarted); … … 89 88 } 90 89 91 void PluginStream Win::start()90 void PluginStream::start() 92 91 { 93 92 ASSERT(!m_loadManually); … … 100 99 } 101 100 102 void PluginStream Win::stop()101 void PluginStream::stop() 103 102 { 104 103 m_streamState = StreamStopped; … … 122 121 } 123 122 124 void PluginStream Win::startStream()123 void PluginStream::startStream() 125 124 { 126 125 ASSERT(m_streamState == StreamBeforeStarted); … … 131 130 // format used when requesting the URL. 132 131 if (responseURL.string().startsWith("javascript:", false)) 133 m_stream.url = _strdup(responseURL.decode_string(responseURL.deprecatedString()).utf8());132 m_stream.url = strdup(responseURL.decode_string(responseURL.deprecatedString()).utf8()); 134 133 else 135 m_stream.url = _strdup(responseURL.deprecatedString().utf8());134 m_stream.url = strdup(responseURL.deprecatedString().utf8()); 136 135 137 136 CString mimeTypeStr = m_resourceResponse.mimeType().utf8(); … … 173 172 174 173 // Protect the stream if destroystream is called from within the newstream handler 175 RefPtr<PluginStream Win> protect(this);174 RefPtr<PluginStream> protect(this); 176 175 177 176 NPError npErr = m_pluginFuncs->newstream(m_instance, (NPMIMEType)mimeTypeStr.data(), &m_stream, false, &m_transferMode); … … 188 187 if (m_transferMode == NP_NORMAL) 189 188 return; 190 191 char tempPath[MAX_PATH]; 192 193 int result = ::GetTempPathA(_countof(tempPath), tempPath); 194 if (result > 0 && result <= _countof(tempPath)) { 195 char tempFile[MAX_PATH]; 196 197 if (::GetTempFileNameA(tempPath, "WKP", 0, tempFile) > 0) { 198 m_tempFileHandle = ::CreateFileA(tempFile, GENERIC_READ | GENERIC_WRITE, 0, 0, 199 CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); 200 201 if (m_tempFileHandle != INVALID_HANDLE_VALUE) { 202 m_path = tempFile; 203 return; 204 } 205 } 206 } 189 190 m_path = openTemporaryFile("WKP", m_tempFileHandle); 207 191 208 192 // Something went wrong, cancel loading the stream 209 cancelAndDestroyStream(NPRES_NETWORK_ERR); 210 } 211 212 NPP PluginStreamWin::ownerForStream(NPStream* stream) 193 if (!isHandleValid(m_tempFileHandle)) 194 cancelAndDestroyStream(NPRES_NETWORK_ERR); 195 } 196 197 NPP PluginStream::ownerForStream(NPStream* stream) 213 198 { 214 199 return streams().get(stream); 215 200 } 216 201 217 void PluginStream Win::cancelAndDestroyStream(NPReason reason)218 { 219 RefPtr<PluginStream Win> protect(this);202 void PluginStream::cancelAndDestroyStream(NPReason reason) 203 { 204 RefPtr<PluginStream> protect(this); 220 205 221 206 destroyStream(reason); … … 223 208 } 224 209 225 void PluginStream Win::destroyStream(NPReason reason)210 void PluginStream::destroyStream(NPReason reason) 226 211 { 227 212 m_reason = reason; … … 237 222 } 238 223 239 void PluginStream Win::destroyStream()224 void PluginStream::destroyStream() 240 225 { 241 226 if (m_streamState == StreamStopped) … … 245 230 ASSERT (!m_deliveryData || m_deliveryData->size() == 0); 246 231 247 if (m_tempFileHandle != INVALID_HANDLE_VALUE) 248 ::CloseHandle(m_tempFileHandle); 232 closeFile(m_tempFileHandle); 249 233 250 234 if (m_stream.ndata != 0) { … … 267 251 m_streamState = StreamStopped; 268 252 269 // disconnectStreamcan cause us to be deleted.270 RefPtr<PluginStream Win> protect(this);253 // streamDidFinishLoading can cause us to be deleted. 254 RefPtr<PluginStream> protect(this); 271 255 if (!m_loadManually) 272 m_ pluginView->disconnectStream(this);273 274 m_pluginView = 0;275 276 if (!m_path.isNull())277 ::DeleteFileA(m_path.data());278 } 279 280 void PluginStream Win::delayDeliveryTimerFired(Timer<PluginStreamWin>* timer)256 m_client->streamDidFinishLoading(this); 257 258 if (!m_path.isNull()) { 259 String tempFilePath = String::fromUTF8(m_path.data()); 260 deleteFile(tempFilePath); 261 } 262 } 263 264 void PluginStream::delayDeliveryTimerFired(Timer<PluginStream>* timer) 281 265 { 282 266 ASSERT(timer == &m_delayDeliveryTimer); … … 285 269 } 286 270 287 void PluginStream Win::deliverData()271 void PluginStream::deliverData() 288 272 { 289 273 ASSERT(m_deliveryData); … … 338 322 } 339 323 340 void PluginStream Win::sendJavaScriptStream(const KURL& requestURL, const CString& resultString)324 void PluginStream::sendJavaScriptStream(const KURL& requestURL, const CString& resultString) 341 325 { 342 326 didReceiveResponse(0, ResourceResponse(requestURL, "text/plain", resultString.length(), "", "")); … … 356 340 } 357 341 358 void PluginStream Win::didReceiveResponse(NetscapePlugInStreamLoader* loader, const ResourceResponse& response)342 void PluginStream::didReceiveResponse(NetscapePlugInStreamLoader* loader, const ResourceResponse& response) 359 343 { 360 344 ASSERT(loader == m_loader); … … 366 350 } 367 351 368 void PluginStream Win::didReceiveData(NetscapePlugInStreamLoader* loader, const char* data, int length)352 void PluginStream::didReceiveData(NetscapePlugInStreamLoader* loader, const char* data, int length) 369 353 { 370 354 ASSERT(loader == m_loader); … … 374 358 // If the plug-in cancels the stream in deliverData it could be deleted, 375 359 // so protect it here. 376 RefPtr<PluginStream Win> protect(this);360 RefPtr<PluginStream> protect(this); 377 361 378 362 if (m_transferMode != NP_ASFILEONLY) { … … 387 371 } 388 372 389 if (m_streamState != StreamStopped && m_tempFileHandle != INVALID_HANDLE_VALUE) { 390 DWORD written; 391 bool retval = true; 392 393 retval = WriteFile(m_tempFileHandle, data, length, &written, 0); 394 395 if (!retval || (int)written != length) 373 if (m_streamState != StreamStopped && isHandleValid(m_tempFileHandle)) { 374 int bytesWritten = writeToFile(m_tempFileHandle, data, length); 375 if (bytesWritten != length) 396 376 cancelAndDestroyStream(NPRES_NETWORK_ERR); 397 377 } 398 378 } 399 379 400 void PluginStream Win::didFail(NetscapePlugInStreamLoader* loader, const ResourceError&)380 void PluginStream::didFail(NetscapePlugInStreamLoader* loader, const ResourceError&) 401 381 { 402 382 ASSERT(loader == m_loader); … … 408 388 } 409 389 410 void PluginStream Win::didFinishLoading(NetscapePlugInStreamLoader* loader)390 void PluginStream::didFinishLoading(NetscapePlugInStreamLoader* loader) 411 391 { 412 392 ASSERT(loader == m_loader); -
trunk/WebCore/plugins/PluginStream.h
r29398 r29399 1 1 /* 2 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 3 * Copyright (C) 2008 Collabora, Ltd. All rights reserved. 3 4 * 4 5 * Redistribution and use in source and binary forms, with or without … … 24 25 */ 25 26 26 #ifndef PluginStream Win_H27 #define PluginStream Win_H27 #ifndef PluginStream_H 28 #define PluginStream_H 28 29 29 #include <winsock2.h>30 #include <windows.h>31 #include <wtf/HashMap.h>32 #include <wtf/Vector.h>33 #include <wtf/OwnPtr.h>34 #include <wtf/RefCounted.h>35 30 #include "CString.h" 31 #include "FileSystem.h" 36 32 #include "KURL.h" 37 33 #include "npfunctions.h" … … 42 38 #include "StringHash.h" 43 39 #include "Timer.h" 40 #include <wtf/HashMap.h> 41 #include <wtf/Vector.h> 42 #include <wtf/OwnPtr.h> 43 #include <wtf/RefCounted.h> 44 44 45 45 namespace WebCore { 46 46 class Frame; 47 class Plugin ViewWin;47 class PluginStream; 48 48 49 49 enum PluginStreamState { StreamBeforeStarted, StreamStarted, StreamStopped }; 50 50 51 class PluginStream Win : public RefCounted<PluginStreamWin>, private NetscapePlugInStreamLoaderClient {51 class PluginStreamClient { 52 52 public: 53 PluginStreamWin(PluginViewWin*, Frame*, const ResourceRequest&, bool sendNotification, void* notifyData); 54 ~PluginStreamWin(); 53 virtual ~PluginStreamClient() {} 54 virtual void streamDidFinishLoading(PluginStream*) {} 55 }; 56 57 class PluginStream : public RefCounted<PluginStream>, private NetscapePlugInStreamLoaderClient { 58 public: 59 PluginStream(PluginStreamClient*, Frame*, const ResourceRequest&, bool sendNotification, void* notifyData, const NPPluginFuncs*, NPP instance); 60 ~PluginStream(); 55 61 56 62 void start(); … … 79 85 ResourceResponse m_resourceResponse; 80 86 87 PluginStreamClient* m_client; 81 88 Frame* m_frame; 82 89 RefPtr<NetscapePlugInStreamLoader> m_loader; 83 PluginViewWin* m_pluginView;84 90 void* m_notifyData; 85 91 bool m_sendNotification; … … 87 93 bool m_loadManually; 88 94 89 Timer<PluginStream Win> m_delayDeliveryTimer;90 void delayDeliveryTimerFired(Timer<PluginStream Win>*);95 Timer<PluginStream> m_delayDeliveryTimer; 96 void delayDeliveryTimerFired(Timer<PluginStream>*); 91 97 92 98 OwnPtr< Vector<char> > m_deliveryData; 93 99 94 HANDLEm_tempFileHandle;100 PlatformFileHandle m_tempFileHandle; 95 101 96 102 const NPPluginFuncs* m_pluginFuncs; -
trunk/WebCore/plugins/npfunctions.h
r29398 r29399 27 27 #define _NPFUNCTIONS_H_ 28 28 29 #include "npruntime.h" 30 #include "npapi.h" 29 #include "npruntime_internal.h" 31 30 32 31 #ifdef __cplusplus -
trunk/WebCore/plugins/win/PluginViewWin.cpp
r29384 r29399 1 1 /* 2 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 3 * Copyright (C) 2008 Collabora, Ltd. All rights reserved. 3 4 * 4 5 * Redistribution and use in source and binary forms, with or without … … 53 54 #include "PluginDebug.h" 54 55 #include "PluginPackageWin.h" 55 #include "PluginStreamWin.h"56 56 #include "npruntime_impl.h" 57 57 #include "runtime_root.h" … … 740 740 return; 741 741 742 HashSet<RefPtr<PluginStream Win> > streams = m_streams;743 HashSet<RefPtr<PluginStream Win> >::iterator end = streams.end();744 for (HashSet<RefPtr<PluginStream Win> >::iterator it = streams.begin(); it != end; ++it) {742 HashSet<RefPtr<PluginStream> > streams = m_streams; 743 HashSet<RefPtr<PluginStream> >::iterator end = streams.end(); 744 for (HashSet<RefPtr<PluginStream> >::iterator it = streams.begin(); it != end; ++it) { 745 745 (*it)->stop(); 746 746 disconnectStream((*it).get()); … … 845 845 // just pass it off to the loader 846 846 if (request->frameLoadRequest().frameName().isEmpty()) { 847 PluginStream Win* stream = new PluginStreamWin(this, m_parentFrame, request->frameLoadRequest().resourceRequest(), request->sendNotification(), request->notifyData());847 PluginStream* stream = new PluginStream(this, m_parentFrame, request->frameLoadRequest().resourceRequest(), request->sendNotification(), request->notifyData(), plugin()->pluginFuncs(), instance()); 848 848 m_streams.add(stream); 849 849 stream->start(); … … 877 877 cstr = resultString.utf8(); 878 878 879 RefPtr<PluginStream Win> stream = new PluginStreamWin(this, parentFrame.get(), request->frameLoadRequest().resourceRequest(), request->sendNotification(), request->notifyData());879 RefPtr<PluginStream> stream = new PluginStream(this, m_parentFrame, request->frameLoadRequest().resourceRequest(), request->sendNotification(), request->notifyData(), plugin()->pluginFuncs(), instance()); 880 880 m_streams.add(stream); 881 881 stream->sendJavaScriptStream(requestURL, cstr); … … 1235 1235 NPError PluginViewWin::destroyStream(NPStream* stream, NPReason reason) 1236 1236 { 1237 PluginStream Win* browserStream = static_cast<PluginStreamWin*>(stream->ndata);1238 1239 if (!stream || PluginStream Win::ownerForStream(stream) != m_instance)1237 PluginStream* browserStream = static_cast<PluginStream*>(stream->ndata); 1238 1239 if (!stream || PluginStream::ownerForStream(stream) != m_instance) 1240 1240 return NPERR_INVALID_INSTANCE_ERROR; 1241 1241 … … 1438 1438 } 1439 1439 1440 void PluginViewWin::disconnectStream(PluginStream Win* stream)1440 void PluginViewWin::disconnectStream(PluginStream* stream) 1441 1441 { 1442 1442 ASSERT(m_streams.contains(stream)); … … 1616 1616 ASSERT(!m_manualStream); 1617 1617 1618 m_manualStream = new PluginStream Win(this, m_parentFrame, m_parentFrame->loader()->activeDocumentLoader()->request(), false, 0);1618 m_manualStream = new PluginStream(this, m_parentFrame, m_parentFrame->loader()->activeDocumentLoader()->request(), false, 0, plugin()->pluginFuncs(), instance()); 1619 1619 m_manualStream->setLoadManually(true); 1620 1620 -
trunk/WebCore/plugins/win/PluginViewWin.h
r28816 r29399 1 1 /* 2 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 3 * Copyright (C) 2008 Collabora, Ltd. All rights reserved. 3 4 * 4 5 * Redistribution and use in source and binary forms, with or without … … 34 35 #include "KURL.h" 35 36 #include "PlatformString.h" 37 #include "PluginStream.h" 36 38 #include "ResourceRequest.h" 37 39 #include "Timer.h" … … 60 62 class PluginPackageWin; 61 63 class PluginRequestWin; 62 class PluginStream Win;64 class PluginStream; 63 65 class ResourceError; 64 66 class ResourceResponse; … … 81 83 }; 82 84 83 class PluginViewWin : public Widget {85 class PluginViewWin : public Widget, private PluginStreamClient { 84 86 friend static LRESULT CALLBACK PluginViewWndProc(HWND, UINT, WPARAM, LPARAM); 85 87 … … 118 120 bool arePopupsAllowed() const; 119 121 120 void disconnectStream(PluginStreamWin*); 122 void disconnectStream(PluginStream*); 123 void streamDidFinishLoading(PluginStream* stream) { disconnectStream(stream); } 121 124 122 125 // Widget functions … … 197 200 Vector<bool, 4> m_popupStateStack; 198 201 199 HashSet<RefPtr<PluginStream Win> > m_streams;202 HashSet<RefPtr<PluginStream> > m_streams; 200 203 Vector<PluginRequestWin*> m_requests; 201 204 … … 216 219 217 220 bool m_loadManually; 218 RefPtr<PluginStream Win> m_manualStream;221 RefPtr<PluginStream> m_manualStream; 219 222 220 223 static PluginViewWin* s_currentPluginView;
Note: See TracChangeset
for help on using the changeset viewer.