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

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

Issue 2871313002: Add histogram for Blink's spell check request interval (Closed)
Patch Set: Fri May 12 11:31:33 PDT 2017 Created 3 years, 7 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 | « no previous file | third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp » ('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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698