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

Side by Side Diff: Source/core/editing/SpellCheckRequester.h

Issue 593583002: Assert that frame() derefs a non-null pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « Source/core/editing/InputMethodController.h ('k') | Source/core/editing/SpellChecker.h » ('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) 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 bool canCheckAsynchronously(Range*) const; 110 bool canCheckAsynchronously(Range*) const;
111 TextCheckerClient& client() const; 111 TextCheckerClient& client() const;
112 void timerFiredToProcessQueuedRequest(Timer<SpellCheckRequester>*); 112 void timerFiredToProcessQueuedRequest(Timer<SpellCheckRequester>*);
113 void invokeRequest(PassRefPtrWillBeRawPtr<SpellCheckRequest>); 113 void invokeRequest(PassRefPtrWillBeRawPtr<SpellCheckRequest>);
114 void enqueueRequest(PassRefPtrWillBeRawPtr<SpellCheckRequest>); 114 void enqueueRequest(PassRefPtrWillBeRawPtr<SpellCheckRequest>);
115 void didCheckSucceed(int sequence, const Vector<TextCheckingResult>&); 115 void didCheckSucceed(int sequence, const Vector<TextCheckingResult>&);
116 void didCheckCancel(int sequence); 116 void didCheckCancel(int sequence);
117 void didCheck(int sequence, const Vector<TextCheckingResult>&); 117 void didCheck(int sequence, const Vector<TextCheckingResult>&);
118 118
119 RawPtrWillBeMember<LocalFrame> m_frame; 119 RawPtrWillBeMember<LocalFrame> m_frame;
120 LocalFrame& frame() const { ASSERT(m_frame); return *m_frame; } 120 LocalFrame& frame() const
121 {
122 ASSERT(m_frame);
123 return *m_frame;
124 }
121 125
122 int m_lastRequestSequence; 126 int m_lastRequestSequence;
123 int m_lastProcessedSequence; 127 int m_lastProcessedSequence;
124 128
125 Timer<SpellCheckRequester> m_timerToProcessQueuedRequest; 129 Timer<SpellCheckRequester> m_timerToProcessQueuedRequest;
126 130
127 RefPtrWillBeMember<SpellCheckRequest> m_processingRequest; 131 RefPtrWillBeMember<SpellCheckRequest> m_processingRequest;
128 132
129 typedef WillBeHeapDeque<RefPtrWillBeMember<SpellCheckRequest> > RequestQueue ; 133 typedef WillBeHeapDeque<RefPtrWillBeMember<SpellCheckRequest> > RequestQueue ;
130 RequestQueue m_requestQueue; 134 RequestQueue m_requestQueue;
131 }; 135 };
132 136
133 } // namespace blink 137 } // namespace blink
134 138
135 #endif // SpellCheckRequester_h 139 #endif // SpellCheckRequester_h
OLDNEW
« no previous file with comments | « Source/core/editing/InputMethodController.h ('k') | Source/core/editing/SpellChecker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698