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

Side by Side Diff: components/spellcheck/renderer/spellcheck.h

Issue 2857353002: Convert Spellcheck host MessageFilter IPC to mojo (Closed)
Patch Set: Use MakeUnique for the MessageLoop in TestingSpellCheckProvider. 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
OLDNEW
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 COMPONENTS_SPELLCHECK_RENDERER_SPELLCHECK_H_ 5 #ifndef COMPONENTS_SPELLCHECK_RENDERER_SPELLCHECK_H_
6 #define COMPONENTS_SPELLCHECK_RENDERER_SPELLCHECK_H_ 6 #define COMPONENTS_SPELLCHECK_RENDERER_SPELLCHECK_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 // The parameters of a pending background-spellchecking request. When WebKit 147 // The parameters of a pending background-spellchecking request. When WebKit
148 // sends a background-spellchecking request before initializing hunspell, 148 // sends a background-spellchecking request before initializing hunspell,
149 // we save its parameters and start spellchecking after we finish initializing 149 // we save its parameters and start spellchecking after we finish initializing
150 // hunspell. (When WebKit sends two or more requests, we cancel the previous 150 // hunspell. (When WebKit sends two or more requests, we cancel the previous
151 // requests so we do not have to use vectors.) 151 // requests so we do not have to use vectors.)
152 std::unique_ptr<SpellcheckRequest> pending_request_param_; 152 std::unique_ptr<SpellcheckRequest> pending_request_param_;
153 #endif 153 #endif
154 154
155 // Bindings for SpellChecker clients. 155 // Bindings for SpellChecker clients.
156 mojo::BindingSet<spellcheck::mojom::SpellChecker> spellchecker_bindings_; 156 mojo::BindingSet<spellcheck::mojom::SpellChecker> bindings_;
157 157
158 // A vector of objects used to actually check spelling, one for each enabled 158 // A vector of objects used to actually check spelling, one for each enabled
159 // language. 159 // language.
160 std::vector<std::unique_ptr<SpellcheckLanguage>> languages_; 160 std::vector<std::unique_ptr<SpellcheckLanguage>> languages_;
161 161
162 // Custom dictionary spelling engine. 162 // Custom dictionary spelling engine.
163 CustomDictionaryEngine custom_dictionary_; 163 CustomDictionaryEngine custom_dictionary_;
164 164
165 // Remember state for spellchecking. 165 // Remember state for spellchecking.
166 bool spellcheck_enabled_; 166 bool spellcheck_enabled_;
167 167
168 DISALLOW_COPY_AND_ASSIGN(SpellCheck); 168 DISALLOW_COPY_AND_ASSIGN(SpellCheck);
169 }; 169 };
170 170
171 #endif // COMPONENTS_SPELLCHECK_RENDERER_SPELLCHECK_H_ 171 #endif // COMPONENTS_SPELLCHECK_RENDERER_SPELLCHECK_H_
OLDNEW
« no previous file with comments | « components/spellcheck/renderer/hunspell_engine.cc ('k') | components/spellcheck/renderer/spellcheck.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698