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

Side by Side Diff: third_party/WebKit/Source/core/dom/QualifiedName.h

Issue 1406923009: Rename DISALLOW_ALLOCATION and ALLOW_ONLY_INLINE_ALLOCATION (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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) 2005, 2006, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 13 matching lines...) Expand all
24 #include "core/CoreExport.h" 24 #include "core/CoreExport.h"
25 #include "wtf/Allocator.h" 25 #include "wtf/Allocator.h"
26 #include "wtf/HashTableDeletedValueType.h" 26 #include "wtf/HashTableDeletedValueType.h"
27 #include "wtf/HashTraits.h" 27 #include "wtf/HashTraits.h"
28 #include "wtf/RefCounted.h" 28 #include "wtf/RefCounted.h"
29 #include "wtf/text/AtomicString.h" 29 #include "wtf/text/AtomicString.h"
30 30
31 namespace blink { 31 namespace blink {
32 32
33 struct QualifiedNameComponents { 33 struct QualifiedNameComponents {
34 DISALLOW_ALLOCATION(); 34 DISALLOW_NEW();
35 StringImpl* m_prefix; 35 StringImpl* m_prefix;
36 StringImpl* m_localName; 36 StringImpl* m_localName;
37 StringImpl* m_namespace; 37 StringImpl* m_namespace;
38 }; 38 };
39 39
40 // This struct is used to pass data between QualifiedName and the QNameTranslato r. 40 // This struct is used to pass data between QualifiedName and the QNameTranslato r.
41 // For hashing and equality only the QualifiedNameComponents fields are used. 41 // For hashing and equality only the QualifiedNameComponents fields are used.
42 struct QualifiedNameData { 42 struct QualifiedNameData {
43 DISALLOW_ALLOCATION(); 43 DISALLOW_NEW();
44 QualifiedNameComponents m_components; 44 QualifiedNameComponents m_components;
45 bool m_isStatic; 45 bool m_isStatic;
46 }; 46 };
47 47
48 class CORE_EXPORT QualifiedName { 48 class CORE_EXPORT QualifiedName {
49 USING_FAST_MALLOC(QualifiedName); 49 USING_FAST_MALLOC(QualifiedName);
50 public: 50 public:
51 class QualifiedNameImpl : public RefCounted<QualifiedNameImpl> { 51 class QualifiedNameImpl : public RefCounted<QualifiedNameImpl> {
52 public: 52 public:
53 static PassRefPtr<QualifiedNameImpl> create(const AtomicString& prefix, const AtomicString& localName, const AtomicString& namespaceURI, bool isStatic) 53 static PassRefPtr<QualifiedNameImpl> create(const AtomicString& prefix, const AtomicString& localName, const AtomicString& namespaceURI, bool isStatic)
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 typedef blink::QualifiedNameHash Hash; 180 typedef blink::QualifiedNameHash Hash;
181 }; 181 };
182 182
183 template<> struct HashTraits<blink::QualifiedName> : SimpleClassHashTraits<blink ::QualifiedName> { 183 template<> struct HashTraits<blink::QualifiedName> : SimpleClassHashTraits<blink ::QualifiedName> {
184 static const bool emptyValueIsZero = false; 184 static const bool emptyValueIsZero = false;
185 static blink::QualifiedName emptyValue() { return blink::QualifiedName::null (); } 185 static blink::QualifiedName emptyValue() { return blink::QualifiedName::null (); }
186 }; 186 };
187 } 187 }
188 188
189 #endif 189 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/PendingScript.h ('k') | third_party/WebKit/Source/core/dom/RangeBoundaryPoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698