[webkit-changes] [WebKit/WebKit] ef1317: Move function definitions in StorageUtilities.h to...

Sihui noreply at github.com
Thu Aug 3 15:01:41 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ef131718f0c85f8f5732bee34953c5f4d0e3975d
      https://github.com/WebKit/WebKit/commit/ef131718f0c85f8f5732bee34953c5f4d0e3975d
  Author: Sihui Liu <sihui_liu at apple.com>
  Date:   2023-08-03 (Thu, 03 Aug 2023)

  Changed paths:
    M Source/WebCore/Headers.cmake
    M Source/WebCore/Sources.txt
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    M Source/WebCore/storage/Storage.idl
    A Source/WebCore/storage/StorageUtilities.cpp
    A Source/WebCore/storage/StorageUtilities.h
    M Source/WebKit/NetworkProcess/storage/CacheStorageManager.cpp
    M Source/WebKit/NetworkProcess/storage/NetworkStorageManager.cpp
    R Source/WebKit/NetworkProcess/storage/StorageUtilities.h
    M Source/WebKit/WebKit.xcodeproj/project.pbxproj

  Log Message:
  -----------
  Move function definitions in StorageUtilities.h to StorageUtilities.cpp
https://bugs.webkit.org/show_bug.cgi?id=259745
rdar://113287619

Reviewed by Chris Dumez.

These functions are too complicated to make inline useful. This patch also moves StorageUtilities to WebCore so WebCore
code could use the utility functions later.

* Source/WebCore/Headers.cmake:
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/storage/Storage.idl:
* Source/WebCore/storage/StorageUtilities.cpp: Renamed from Source/WebKit/NetworkProcess/storage/StorageUtilities.h.
(WebCore::StorageUtilities::readOriginFromFile):
(WebCore::StorageUtilities::writeOriginToFile):
* Source/WebCore/storage/StorageUtilities.h: Added.
* Source/WebKit/NetworkProcess/storage/CacheStorageManager.cpp:
(WebKit::CacheStorageManager::originsOfCacheStorageData):
(WebKit::CacheStorageManager::CacheStorageManager):
* Source/WebKit/NetworkProcess/storage/NetworkStorageManager.cpp:
(WebKit::NetworkStorageManager::writeOriginToFileIfNecessary):
(WebKit::NetworkStorageManager::getAllOrigins):
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:

Canonical link: https://commits.webkit.org/266555@main




More information about the webkit-changes mailing list