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

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: Added new layout test, both tests use testharness.js. 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/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..e4456357f5418c4b3ef166c823cc133381f1adad 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<int, Member<DOMMimeType>>;
+ MimeTypeMap m_mimeTypes;
+ double m_modified;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698