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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 2 Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
3 Copyright (C) 2008 Apple Inc. All rights reserved. 3 Copyright (C) 2008 Apple Inc. All rights reserved.
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
(...skipping 24 matching lines...) Expand all
35 class DOMPluginArray final : public GarbageCollected<DOMPluginArray>, public Scr iptWrappable, public DOMWindowProperty { 35 class DOMPluginArray final : public GarbageCollected<DOMPluginArray>, public Scr iptWrappable, public DOMWindowProperty {
36 DEFINE_WRAPPERTYPEINFO(); 36 DEFINE_WRAPPERTYPEINFO();
37 USING_GARBAGE_COLLECTED_MIXIN(DOMPluginArray); 37 USING_GARBAGE_COLLECTED_MIXIN(DOMPluginArray);
38 public: 38 public:
39 static DOMPluginArray* create(LocalFrame* frame) 39 static DOMPluginArray* create(LocalFrame* frame)
40 { 40 {
41 return new DOMPluginArray(frame); 41 return new DOMPluginArray(frame);
42 } 42 }
43 43
44 unsigned length() const; 44 unsigned length() const;
45 DOMPlugin* getPlugin(unsigned index);
45 DOMPlugin* item(unsigned index); 46 DOMPlugin* item(unsigned index);
46 DOMPlugin* namedItem(const AtomicString& propertyName); 47 DOMPlugin* namedItem(const AtomicString& propertyName);
47 48
48 void refresh(bool reload); 49 void refresh(bool reload);
49 50
50 DECLARE_VIRTUAL_TRACE(); 51 DECLARE_VIRTUAL_TRACE();
51 52
52 private: 53 private:
53 explicit DOMPluginArray(LocalFrame*); 54 explicit DOMPluginArray(LocalFrame*);
54 PluginData* pluginData() const; 55 PluginData* pluginData() const;
56 using PluginMap = HeapHashMap<unsigned, Member<DOMPlugin>, DefaultHash<unsig ned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned>>;
57 PluginMap m_plugins;
58 double m_modified;
55 }; 59 };
56 60
57 } // namespace blink 61 } // namespace blink
58 62
59 #endif // DOMPluginArray_h 63 #endif // DOMPluginArray_h
OLDNEW
« 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