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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 void ClearProcessingRequest(); | 116 void ClearProcessingRequest(); |
117 | 117 |
118 Member<LocalFrame> frame_; | 118 Member<LocalFrame> frame_; |
119 LocalFrame& GetFrame() const { | 119 LocalFrame& GetFrame() const { |
120 DCHECK(frame_); | 120 DCHECK(frame_); |
121 return *frame_; | 121 return *frame_; |
122 } | 122 } |
123 | 123 |
124 int last_request_sequence_; | 124 int last_request_sequence_; |
125 int last_processed_sequence_; | 125 int last_processed_sequence_; |
| 126 double last_request_time_; |
126 | 127 |
127 TaskRunnerTimer<SpellCheckRequester> timer_to_process_queued_request_; | 128 TaskRunnerTimer<SpellCheckRequester> timer_to_process_queued_request_; |
128 | 129 |
129 Member<SpellCheckRequest> processing_request_; | 130 Member<SpellCheckRequest> processing_request_; |
130 | 131 |
131 typedef HeapDeque<Member<SpellCheckRequest>> RequestQueue; | 132 typedef HeapDeque<Member<SpellCheckRequest>> RequestQueue; |
132 RequestQueue request_queue_; | 133 RequestQueue request_queue_; |
133 }; | 134 }; |
134 | 135 |
135 } // namespace blink | 136 } // namespace blink |
136 | 137 |
137 #endif // SpellCheckRequester_h | 138 #endif // SpellCheckRequester_h |
OLD | NEW |