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

Side by Side Diff: Source/wtf/text/StringImpl.h

Issue 19804005: Remove AtomicStringImpl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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/wtf/text/AtomicStringImpl.h ('k') | Source/wtf/wtf.gypi » ('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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserved.
4 * Copyright (C) 2009 Google Inc. All rights reserved. 4 * Copyright (C) 2009 Google Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // This is needed because we malloc() space for a StringImpl plus an 105 // This is needed because we malloc() space for a StringImpl plus an
106 // immediately following buffer, as a performance tweak. 106 // immediately following buffer, as a performance tweak.
107 NEW_DELETE_SAME_AS_MALLOC_FREE; 107 NEW_DELETE_SAME_AS_MALLOC_FREE;
108 friend struct WTF::CStringTranslator; 108 friend struct WTF::CStringTranslator;
109 template<typename CharacterType> friend struct WTF::HashAndCharactersTransla tor; 109 template<typename CharacterType> friend struct WTF::HashAndCharactersTransla tor;
110 friend struct WTF::HashAndUTF8CharactersTranslator; 110 friend struct WTF::HashAndUTF8CharactersTranslator;
111 friend struct WTF::CharBufferFromLiteralDataTranslator; 111 friend struct WTF::CharBufferFromLiteralDataTranslator;
112 friend struct WTF::LCharBufferTranslator; 112 friend struct WTF::LCharBufferTranslator;
113 friend struct WTF::SubstringTranslator; 113 friend struct WTF::SubstringTranslator;
114 friend struct WTF::UCharBufferTranslator; 114 friend struct WTF::UCharBufferTranslator;
115 friend class AtomicStringImpl;
116 115
117 private: 116 private:
118 enum BufferOwnership { 117 enum BufferOwnership {
119 BufferInternal, 118 BufferInternal,
120 BufferOwned, 119 BufferOwned,
121 // NOTE: Adding more ownership types needs to extend m_hashAndFlags as w e're at capacity 120 // NOTE: Adding more ownership types needs to extend m_hashAndFlags as w e're at capacity
122 }; 121 };
123 122
124 // Used to construct static strings, which have an special refCount that can never hit zero. 123 // Used to construct static strings, which have an special refCount that can never hit zero.
125 // This means that the static string will never be destroyed, which is impor tant because 124 // This means that the static string will never be destroyed, which is impor tant because
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
935 } 934 }
936 935
937 using WTF::StringImpl; 936 using WTF::StringImpl;
938 using WTF::equal; 937 using WTF::equal;
939 using WTF::equalNonNull; 938 using WTF::equalNonNull;
940 using WTF::TextCaseSensitivity; 939 using WTF::TextCaseSensitivity;
941 using WTF::TextCaseSensitive; 940 using WTF::TextCaseSensitive;
942 using WTF::TextCaseInsensitive; 941 using WTF::TextCaseInsensitive;
943 942
944 #endif 943 #endif
OLDNEW
« no previous file with comments | « Source/wtf/text/AtomicStringImpl.h ('k') | Source/wtf/wtf.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698