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

Unified Diff: third_party/WebKit/Source/core/fetch/CachedMetadata.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/CachedMetadata.cpp
diff --git a/third_party/WebKit/Source/core/fetch/CachedMetadata.cpp b/third_party/WebKit/Source/core/fetch/CachedMetadata.cpp
deleted file mode 100644
index 19b1105a4309c60aa59f8fed21d90510e874759f..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/fetch/CachedMetadata.cpp
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2016 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/CachedMetadata.h"
-
-namespace blink {
-
-CachedMetadata::CachedMetadata(const char* data, size_t size) {
- // We need to define a local variable to use the constant in DCHECK.
- constexpr auto kDataStart = CachedMetadata::kDataStart;
- // Serialized metadata should have non-empty data.
- DCHECK_GT(size, kDataStart);
- DCHECK(data);
-
- m_serializedData.reserveInitialCapacity(size);
- m_serializedData.append(data, size);
-}
-
-CachedMetadata::CachedMetadata(uint32_t dataTypeID,
- const char* data,
- size_t size) {
- // Don't allow an ID of 0, it is used internally to indicate errors.
- DCHECK(dataTypeID);
- DCHECK(data);
-
- m_serializedData.reserveInitialCapacity(sizeof(uint32_t) + size);
- m_serializedData.append(reinterpret_cast<const char*>(&dataTypeID),
- sizeof(uint32_t));
- m_serializedData.append(data, size);
-}
-
-} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/fetch/CachedMetadata.h ('k') | third_party/WebKit/Source/core/fetch/CachedMetadataHandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698