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

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

Issue 1715203002: Stop async spellchecker before running the leak detector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + parameterize WebLeakDetector over WebFrames instead Created 4 years, 10 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 int lastRequestSequence() const 98 int lastRequestSequence() const
99 { 99 {
100 return m_lastRequestSequence; 100 return m_lastRequestSequence;
101 } 101 }
102 102
103 int lastProcessedSequence() const 103 int lastProcessedSequence() const
104 { 104 {
105 return m_lastProcessedSequence; 105 return m_lastProcessedSequence;
106 } 106 }
107 107
108 // Exposed for leak detector only, see comment for corresponding
109 // SpellChecker method.
110 void prepareForLeakDetection();
111
108 private: 112 private:
109 friend class SpellCheckRequest; 113 friend class SpellCheckRequest;
110 114
111 explicit SpellCheckRequester(LocalFrame&); 115 explicit SpellCheckRequester(LocalFrame&);
112 116
113 bool canCheckAsynchronously(Range*) const; 117 bool canCheckAsynchronously(Range*) const;
114 TextCheckerClient& client() const; 118 TextCheckerClient& client() const;
115 void timerFiredToProcessQueuedRequest(Timer<SpellCheckRequester>*); 119 void timerFiredToProcessQueuedRequest(Timer<SpellCheckRequester>*);
116 void invokeRequest(PassRefPtrWillBeRawPtr<SpellCheckRequest>); 120 void invokeRequest(PassRefPtrWillBeRawPtr<SpellCheckRequest>);
117 void enqueueRequest(PassRefPtrWillBeRawPtr<SpellCheckRequest>); 121 void enqueueRequest(PassRefPtrWillBeRawPtr<SpellCheckRequest>);
(...skipping 17 matching lines...) Expand all
135 139
136 RefPtrWillBeMember<SpellCheckRequest> m_processingRequest; 140 RefPtrWillBeMember<SpellCheckRequest> m_processingRequest;
137 141
138 typedef WillBeHeapDeque<RefPtrWillBeMember<SpellCheckRequest>> RequestQueue; 142 typedef WillBeHeapDeque<RefPtrWillBeMember<SpellCheckRequest>> RequestQueue;
139 RequestQueue m_requestQueue; 143 RequestQueue m_requestQueue;
140 }; 144 };
141 145
142 } // namespace blink 146 } // namespace blink
143 147
144 #endif // SpellCheckRequester_h 148 #endif // SpellCheckRequester_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698