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

Unified Diff: third_party/WebKit/Source/modules/plugins/DOMPluginArray.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/DOMPluginArray.h
diff --git a/third_party/WebKit/Source/modules/plugins/DOMPluginArray.h b/third_party/WebKit/Source/modules/plugins/DOMPluginArray.h
index c4ce6807659b0d4df28b9c0668f4597f8802715f..d6bede01c8ca5c33755e83be93e3020c6c1185ae 100644
--- a/third_party/WebKit/Source/modules/plugins/DOMPluginArray.h
+++ b/third_party/WebKit/Source/modules/plugins/DOMPluginArray.h
@@ -42,6 +42,7 @@ public:
}
unsigned length() const;
+ DOMPlugin* getPlugin(unsigned index);
DOMPlugin* item(unsigned index);
DOMPlugin* namedItem(const AtomicString& propertyName);
@@ -52,6 +53,9 @@ public:
private:
explicit DOMPluginArray(LocalFrame*);
PluginData* pluginData() const;
+ using PluginMap = HeapHashMap<int, Member<DOMPlugin>>;
+ PluginMap m_plugins;
+ double m_modified;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698