| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |