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

Side by Side Diff: third_party/WebKit/Source/modules/plugins/DOMMimeTypeArray.h

Issue 1882003002: include RefCounted.h where needed, only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile fix Created 4 years, 8 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,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details. 13 Library General Public License for more details.
14 14
15 You should have received a copy of the GNU Library General Public License 15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to 16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA. 18 Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 #ifndef DOMMimeTypeArray_h 21 #ifndef DOMMimeTypeArray_h
22 #define DOMMimeTypeArray_h 22 #define DOMMimeTypeArray_h
23 23
24 #include "bindings/core/v8/ScriptWrappable.h" 24 #include "bindings/core/v8/ScriptWrappable.h"
25 #include "core/frame/DOMWindowProperty.h" 25 #include "core/frame/DOMWindowProperty.h"
26 #include "modules/plugins/DOMMimeType.h" 26 #include "modules/plugins/DOMMimeType.h"
27 #include "platform/heap/Handle.h" 27 #include "platform/heap/Handle.h"
28 #include "wtf/Forward.h" 28 #include "wtf/Forward.h"
29 #include "wtf/PassRefPtr.h"
30 #include "wtf/RefCounted.h"
31 29
32 namespace blink { 30 namespace blink {
33 31
34 class LocalFrame; 32 class LocalFrame;
35 class PluginData; 33 class PluginData;
36 34
37 class DOMMimeTypeArray final : public GarbageCollected<DOMMimeTypeArray>, public ScriptWrappable, public DOMWindowProperty { 35 class DOMMimeTypeArray final : public GarbageCollected<DOMMimeTypeArray>, public ScriptWrappable, public DOMWindowProperty {
38 DEFINE_WRAPPERTYPEINFO(); 36 DEFINE_WRAPPERTYPEINFO();
39 USING_GARBAGE_COLLECTED_MIXIN(DOMMimeTypeArray); 37 USING_GARBAGE_COLLECTED_MIXIN(DOMMimeTypeArray);
40 public: 38 public:
41 static DOMMimeTypeArray* create(LocalFrame* frame) 39 static DOMMimeTypeArray* create(LocalFrame* frame)
42 { 40 {
43 return new DOMMimeTypeArray(frame); 41 return new DOMMimeTypeArray(frame);
44 } 42 }
45 43
46 unsigned length() const; 44 unsigned length() const;
47 DOMMimeType* item(unsigned index); 45 DOMMimeType* item(unsigned index);
48 DOMMimeType* namedItem(const AtomicString& propertyName); 46 DOMMimeType* namedItem(const AtomicString& propertyName);
49 47
50 DECLARE_VIRTUAL_TRACE(); 48 DECLARE_VIRTUAL_TRACE();
51 49
52 private: 50 private:
53 explicit DOMMimeTypeArray(LocalFrame*); 51 explicit DOMMimeTypeArray(LocalFrame*);
54 PluginData* getPluginData() const; 52 PluginData* getPluginData() const;
55 }; 53 };
56 54
57 } // namespace blink 55 } // namespace blink
58 56
59 #endif // DOMMimeTypeArray_h 57 #endif // DOMMimeTypeArray_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698