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

Unified Diff: chrome/renderer/spellchecker/spellcheck_provider.h

Issue 10533077: Implement a request cache and disble retrieving a sub-region. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/spellchecker/spellcheck_provider.h
===================================================================
--- chrome/renderer/spellchecker/spellcheck_provider.h (revision 141385)
+++ chrome/renderer/spellchecker/spellcheck_provider.h (working copy)
@@ -85,14 +85,9 @@
const string16& text,
const std::vector<SpellCheckResult>& results);
- // Returns whether |text| has word characters after |index|, i.e. whether a
- // spellchecker needs to check this text.
- bool HasWordCharacters(const string16& text, int index) const;
-
- // Returns a line that should be sent to a browser to spellcheck it.
- bool GetRequestLine(const string16& text,
- string16* request,
- int* offset) const;
+ // Returns whether |text| has word characters, i.e. whether a spellchecker
+ // needs to check this text.
+ bool HasWordCharacters(const WebKit::WebString& text, int index) const;
#endif
#if defined(OS_MACOSX)
void OnAdvanceToNextMisspelling();
@@ -111,8 +106,10 @@
WebTextCheckCompletions text_check_completions_;
#if !defined(OS_MACOSX)
- // The last line sent to the browser process to spellcheck it.
- string16 last_line_;
+ // The last text sent to the browser process to spellcheck it and its
+ // spellchecking results.
+ string16 last_request_;
+ WebKit::WebVector<WebKit::WebTextCheckingResult> last_results_;
#endif
#if defined(OS_MACOSX)
« no previous file with comments | « chrome/browser/spellchecker/spelling_service_client.cc ('k') | chrome/renderer/spellchecker/spellcheck_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698