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

Unified Diff: third_party/WebKit/Source/modules/plugins/DOMMimeTypeArray.h

Issue 2157883002: Cache the mimeTypes and plugins DOM objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated after dry run. Created 4 years, 3 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/plugins/DOMMimeTypeArray.h
diff --git a/third_party/WebKit/Source/modules/plugins/DOMMimeTypeArray.h b/third_party/WebKit/Source/modules/plugins/DOMMimeTypeArray.h
index c7c3ffb97f862755c887718f6ae1e53119678ca8..c224fc014c39799adf7212e8b0dc4becf4856f7a 100644
--- a/third_party/WebKit/Source/modules/plugins/DOMMimeTypeArray.h
+++ b/third_party/WebKit/Source/modules/plugins/DOMMimeTypeArray.h
@@ -42,6 +42,7 @@ public:
}
unsigned length() const;
+ DOMMimeType* getMimeType(unsigned index);
DOMMimeType* item(unsigned index);
DOMMimeType* namedItem(const AtomicString& propertyName);
@@ -50,6 +51,9 @@ public:
private:
explicit DOMMimeTypeArray(LocalFrame*);
PluginData* getPluginData() const;
+ using MimeTypeMap = HeapHashMap<unsigned, Member<DOMMimeType>, DefaultHash<unsigned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned>>;
+ MimeTypeMap m_mimeTypes;
+ double m_modified;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698