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

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

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/NodeRareData.cpp ('k') | Source/core/dom/QualifiedName.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 ~QualifiedNameImpl(); 47 ~QualifiedNameImpl();
48 48
49 unsigned computeHash() const; 49 unsigned computeHash() const;
50 50
51 mutable unsigned m_existingHash; 51 mutable unsigned m_existingHash;
52 const AtomicString m_prefix; 52 const AtomicString m_prefix;
53 const AtomicString m_localName; 53 const AtomicString m_localName;
54 const AtomicString m_namespace; 54 const AtomicString m_namespace;
55 mutable AtomicString m_localNameUpper; 55 mutable AtomicString m_localNameUpper;
56 56
57 void reportMemoryUsage(MemoryObjectInfo*) const;
58
59 private: 57 private:
60 QualifiedNameImpl(const AtomicString& prefix, const AtomicString& localN ame, const AtomicString& namespaceURI) 58 QualifiedNameImpl(const AtomicString& prefix, const AtomicString& localN ame, const AtomicString& namespaceURI)
61 : m_existingHash(0) 59 : m_existingHash(0)
62 , m_prefix(prefix) 60 , m_prefix(prefix)
63 , m_localName(localName) 61 , m_localName(localName)
64 , m_namespace(namespaceURI) 62 , m_namespace(namespaceURI)
65 { 63 {
66 ASSERT(!namespaceURI.isEmpty() || namespaceURI.isNull()); 64 ASSERT(!namespaceURI.isEmpty() || namespaceURI.isNull());
67 } 65 }
68 }; 66 };
(...skipping 23 matching lines...) Expand all
92 90
93 // Uppercased localName, cached for efficiency 91 // Uppercased localName, cached for efficiency
94 const AtomicString& localNameUpper() const; 92 const AtomicString& localNameUpper() const;
95 93
96 String toString() const; 94 String toString() const;
97 95
98 QualifiedNameImpl* impl() const { return m_impl; } 96 QualifiedNameImpl* impl() const { return m_impl; }
99 97
100 // Init routine for globals 98 // Init routine for globals
101 static void init(); 99 static void init();
102
103 void reportMemoryUsage(MemoryObjectInfo*) const;
104 100
105 private: 101 private:
106 void ref() const { m_impl->ref(); } 102 void ref() const { m_impl->ref(); }
107 void deref(); 103 void deref();
108 104
109 static QualifiedNameImpl* hashTableDeletedValue() { return RefPtr<QualifiedN ameImpl>::hashTableDeletedValue(); } 105 static QualifiedNameImpl* hashTableDeletedValue() { return RefPtr<QualifiedN ameImpl>::hashTableDeletedValue(); }
110 106
111 QualifiedNameImpl* m_impl; 107 QualifiedNameImpl* m_impl;
112 }; 108 };
113 109
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 typedef WebCore::QualifiedNameHash Hash; 153 typedef WebCore::QualifiedNameHash Hash;
158 }; 154 };
159 155
160 template<> struct HashTraits<WebCore::QualifiedName> : SimpleClassHashTraits <WebCore::QualifiedName> { 156 template<> struct HashTraits<WebCore::QualifiedName> : SimpleClassHashTraits <WebCore::QualifiedName> {
161 static const bool emptyValueIsZero = false; 157 static const bool emptyValueIsZero = false;
162 static WebCore::QualifiedName emptyValue() { return WebCore::nullQName() ; } 158 static WebCore::QualifiedName emptyValue() { return WebCore::nullQName() ; }
163 }; 159 };
164 } 160 }
165 161
166 #endif 162 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/NodeRareData.cpp ('k') | Source/core/dom/QualifiedName.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698