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

Unified Diff: third_party/WebKit/Source/core/fetch/CachedMetadataHandler.h

Issue 2258743002: Reserve Vector's capacity manually in CachedMetadata (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 4 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/CachedMetadataHandler.h
diff --git a/third_party/WebKit/Source/core/fetch/CachedMetadataHandler.h b/third_party/WebKit/Source/core/fetch/CachedMetadataHandler.h
index bc616790bf4d7cc2c75c7341e7159b30739e240c..4d3b11c604dcfa8849d3d5317b3eefe37c8a4cca 100644
--- a/third_party/WebKit/Source/core/fetch/CachedMetadataHandler.h
+++ b/third_party/WebKit/Source/core/fetch/CachedMetadataHandler.h
@@ -7,6 +7,7 @@
#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
+#include <stdint.h>
namespace blink {
@@ -24,12 +25,12 @@ public:
// Caches the given metadata in association with this resource and suggests
// that the platform persist it. The dataTypeID is a pseudo-randomly chosen
// identifier that is used to distinguish data generated by the caller.
- virtual void setCachedMetadata(unsigned dataTypeID, const char*, size_t, CacheType = SendToPlatform) = 0;
+ virtual void setCachedMetadata(uint32_t dataTypeID, const char*, size_t, CacheType = SendToPlatform) = 0;
// Reset existing metadata, to allow setting new data.
virtual void clearCachedMetadata(CacheType = CacheLocally) = 0;
// Returns cached metadata of the given type associated with this resource.
// This cached metadata can be pruned at any time.
- virtual PassRefPtr<CachedMetadata> cachedMetadata(unsigned dataTypeID) const = 0;
+ virtual PassRefPtr<CachedMetadata> cachedMetadata(uint32_t dataTypeID) const = 0;
// Returns the encoding to which the cache is specific.
virtual String encoding() const = 0;
« no previous file with comments | « third_party/WebKit/Source/core/fetch/CachedMetadata.cpp ('k') | third_party/WebKit/Source/core/fetch/Resource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698