<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>198473</bug_id>
          
          <creation_ts>2019-06-02 20:22:46 -0700</creation_ts>
          <short_desc>[Win] Implement NetworkCacheBlobStorage.cpp without stat and unlink</short_desc>
          <delta_ts>2019-06-02 20:40:36 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit2</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fujii Hironori">fujii</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>annulen</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1541168</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2019-06-02 20:22:46 -0700</bug_when>
    <thetext>[Win] Implement NetworkCacheBlobStorage.cpp without stat and unlink

unlink is deprecated
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/unlink?view=vs-2019

_unlink
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/unlink-wunlink?view=vs-2019

_stat、_stat32、_stat64、_stati64、_stat32i64、_stat64i32、_wstat、_wstat32、_wstat64、_wstati64、_wstat32i64、_wstat64i32 | Microsoft Docs
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/stat-functions?view=vs-2019</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1541170</commentid>
    <comment_count>1</comment_count>
    <who name="Konstantin Tokarev">annulen</who>
    <bug_when>2019-06-02 20:34:19 -0700</bug_when>
    <thetext>Proper direction would be to convert as much as possible of NetworkCache code to be cross-platform by using our FileSystem abstractions, e.g. FileSystem::deleteFile instead of unlink

In future we may want to use std::filesystem to implement some of operations</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1541171</commentid>
    <comment_count>2</comment_count>
    <who name="Konstantin Tokarev">annulen</who>
    <bug_when>2019-06-02 20:40:36 -0700</bug_when>
    <thetext>And where are substantial differences which require code to be #ifdef&apos;ed, it would be better to avoid increasing of #ifdef&apos;s and instead separate parts of code to respective *POSIX.cpp and *Win.cpp files</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>