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

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: 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/DOMPluginArray.h
diff --git a/third_party/WebKit/Source/modules/plugins/DOMPluginArray.h b/third_party/WebKit/Source/modules/plugins/DOMPluginArray.h
index c4ce6807659b0d4df28b9c0668f4597f8802715f..b01cff7847afc0b321206bcbb85a3d8ac20d316f 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<unsigned, Member<DOMPlugin>, DefaultHash<unsigned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned>>;
+ PluginMap m_plugins;
+ double m_modified;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/plugins/DOMPlugin.cpp ('k') | third_party/WebKit/Source/modules/plugins/DOMPluginArray.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698