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

Side by Side Diff: third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.h

Issue 1878473002: ASSERT -> DCHECK in core/editing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Output info for some DCHECKs, add TODOs. 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 void enqueueRequest(SpellCheckRequest*); 118 void enqueueRequest(SpellCheckRequest*);
119 void didCheckSucceed(int sequence, const Vector<TextCheckingResult>&); 119 void didCheckSucceed(int sequence, const Vector<TextCheckingResult>&);
120 void didCheckCancel(int sequence); 120 void didCheckCancel(int sequence);
121 void didCheck(int sequence, const Vector<TextCheckingResult>&); 121 void didCheck(int sequence, const Vector<TextCheckingResult>&);
122 122
123 void clearProcessingRequest(); 123 void clearProcessingRequest();
124 124
125 Member<LocalFrame> m_frame; 125 Member<LocalFrame> m_frame;
126 LocalFrame& frame() const 126 LocalFrame& frame() const
127 { 127 {
128 ASSERT(m_frame); 128 DCHECK(m_frame);
129 return *m_frame; 129 return *m_frame;
130 } 130 }
131 131
132 int m_lastRequestSequence; 132 int m_lastRequestSequence;
133 int m_lastProcessedSequence; 133 int m_lastProcessedSequence;
134 134
135 Timer<SpellCheckRequester> m_timerToProcessQueuedRequest; 135 Timer<SpellCheckRequester> m_timerToProcessQueuedRequest;
136 136
137 Member<SpellCheckRequest> m_processingRequest; 137 Member<SpellCheckRequest> m_processingRequest;
138 138
139 typedef HeapDeque<Member<SpellCheckRequest>> RequestQueue; 139 typedef HeapDeque<Member<SpellCheckRequest>> RequestQueue;
140 RequestQueue m_requestQueue; 140 RequestQueue m_requestQueue;
141 }; 141 };
142 142
143 } // namespace blink 143 } // namespace blink
144 144
145 #endif // SpellCheckRequester_h 145 #endif // SpellCheckRequester_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698