Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(259)

Unified Diff: third_party/WebKit/Source/core/fetch/IntegrityMetadata.cpp

Issue 2584423002: Loading: move core/fetch to platform/loader/fetch (Closed)
Patch Set: another try Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/fetch/IntegrityMetadata.cpp
diff --git a/third_party/WebKit/Source/core/fetch/IntegrityMetadata.cpp b/third_party/WebKit/Source/core/fetch/IntegrityMetadata.cpp
deleted file mode 100644
index c23845515e91eddb576be861ddfcb87a7781c635..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/fetch/IntegrityMetadata.cpp
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "core/fetch/IntegrityMetadata.h"
-
-namespace blink {
-
-IntegrityMetadata::IntegrityMetadata(WTF::String digest,
- HashAlgorithm algorithm)
- : m_digest(digest), m_algorithm(algorithm) {}
-
-IntegrityMetadata::IntegrityMetadata(std::pair<WTF::String, HashAlgorithm> pair)
- : m_digest(pair.first), m_algorithm(pair.second) {}
-
-std::pair<WTF::String, HashAlgorithm> IntegrityMetadata::toPair() const {
- return std::pair<WTF::String, HashAlgorithm>(m_digest, m_algorithm);
-}
-
-bool IntegrityMetadata::setsEqual(const IntegrityMetadataSet& set1,
- const IntegrityMetadataSet& set2) {
- if (set1.size() != set2.size())
- return false;
-
- for (const IntegrityMetadataPair& metadata : set1) {
- if (!set2.contains(metadata))
- return false;
- }
-
- return true;
-}
-
-} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/fetch/IntegrityMetadata.h ('k') | third_party/WebKit/Source/core/fetch/MemoryCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698