OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_H_ | 5 #ifndef CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_H_ |
6 #define CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_H_ | 6 #define CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <queue> | 9 #include <queue> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/platform_file.h" | 16 #include "base/platform_file.h" |
17 #include "base/string16.h" | 17 #include "base/string16.h" |
18 #include "base/time.h" | |
19 #include "chrome/renderer/spellchecker/spellcheck_worditerator.h" | 18 #include "chrome/renderer/spellchecker/spellcheck_worditerator.h" |
20 #include "content/public/renderer/render_process_observer.h" | 19 #include "content/public/renderer/render_process_observer.h" |
21 #include "ipc/ipc_platform_file.h" | 20 #include "ipc/ipc_platform_file.h" |
22 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" |
23 #include "unicode/uscript.h" | 22 #include "unicode/uscript.h" |
24 | 23 |
25 class Hunspell; | 24 class Hunspell; |
26 struct SpellCheckResult; | 25 struct SpellCheckResult; |
27 | 26 |
28 namespace file_util { | 27 namespace file_util { |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 scoped_refptr<SpellCheckRequestParam> pending_request_param_; | 196 scoped_refptr<SpellCheckRequestParam> pending_request_param_; |
198 | 197 |
199 // The set of params already requested. When finishing the request, the params | 198 // The set of params already requested. When finishing the request, the params |
200 // should be removed from the set. | 199 // should be removed from the set. |
201 std::queue<scoped_refptr<SpellCheckRequestParam> > requested_params_; | 200 std::queue<scoped_refptr<SpellCheckRequestParam> > requested_params_; |
202 | 201 |
203 DISALLOW_COPY_AND_ASSIGN(SpellCheck); | 202 DISALLOW_COPY_AND_ASSIGN(SpellCheck); |
204 }; | 203 }; |
205 | 204 |
206 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_H_ | 205 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_H_ |
OLD | NEW |