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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerScriptCachedMetadataHandler.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/modules/serviceworkers/ServiceWorkerScriptCachedMetadataHandler.h
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerScriptCachedMetadataHandler.h b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerScriptCachedMetadataHandler.h
index b3b659e0ef0791ba6d3289d5c58cb726b023bb75..178c95dd1653fd3cfb761069b825f7d203484e87 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerScriptCachedMetadataHandler.h
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerScriptCachedMetadataHandler.h
@@ -9,6 +9,7 @@
#include "platform/heap/Handle.h"
#include "platform/weborigin/KURL.h"
#include "wtf/Vector.h"
+#include <stdint.h>
namespace blink {
@@ -23,9 +24,9 @@ public:
}
~ServiceWorkerScriptCachedMetadataHandler() override;
DECLARE_VIRTUAL_TRACE();
- void setCachedMetadata(unsigned dataTypeID, const char*, size_t, CacheType) override;
+ void setCachedMetadata(uint32_t dataTypeID, const char*, size_t, CacheType) override;
void clearCachedMetadata(CacheType) override;
- PassRefPtr<CachedMetadata> cachedMetadata(unsigned dataTypeID) const override;
+ PassRefPtr<CachedMetadata> cachedMetadata(uint32_t dataTypeID) const override;
String encoding() const override;
private:

Powered by Google App Engine
This is Rietveld 408576698