Move URL from WebCore to WTF
[WebKit-https.git] / Source / WebKit / NetworkProcess / cache / NetworkCacheSubresourcesEntry.h
index ef252a1..43921a0 100644 (file)
  * THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef NetworkCacheSubresourcesEntry_h
-#define NetworkCacheSubresourcesEntry_h
+#pragma once
 
 #if ENABLE(NETWORK_CACHE_SPECULATIVE_REVALIDATION)
 
 #include "NetworkCacheStorage.h"
 #include <WebCore/ResourceRequest.h>
-#include <WebCore/URL.h>
 #include <wtf/HashMap.h>
+#include <wtf/URL.h>
 
 namespace WebKit {
 namespace NetworkCache {
@@ -50,7 +49,7 @@ public:
     WallTime firstSeen() const { return m_firstSeen; }
 
     bool isTransient() const { return m_isTransient; }
-    const WebCore::URL& firstPartyForCookies() const { ASSERT(!m_isTransient); return m_firstPartyForCookies; }
+    const URL& firstPartyForCookies() const { ASSERT(!m_isTransient); return m_firstPartyForCookies; }
     const WebCore::HTTPHeaderMap& requestHeaders() const { ASSERT(!m_isTransient); return m_requestHeaders; }
     WebCore::ResourceLoadPriority priority() const { ASSERT(!m_isTransient); return m_priority; }
 
@@ -65,7 +64,7 @@ private:
     WallTime m_firstSeen;
     bool m_isTransient { false };
     bool m_isSameSite { false };
-    WebCore::URL m_firstPartyForCookies;
+    URL m_firstPartyForCookies;
     WebCore::HTTPHeaderMap m_requestHeaders;
     WebCore::ResourceLoadPriority m_priority;
 };
@@ -107,4 +106,3 @@ private:
 } // namespace NetworkCache
 
 #endif // ENABLE(NETWORK_CACHE_SPECULATIVE_REVALIDATION)
-#endif // NetworkCacheSubresourcesEntry_h