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

Unified Diff: chrome/browser/spellchecker/spellcheck_profile_provider.h

Issue 8345034: SpellCheck: the custom dictionary should be per profile. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 2 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/browser/spellchecker/spellcheck_profile_provider.h
diff --git a/chrome/browser/spellchecker/spellcheck_profile_provider.h b/chrome/browser/spellchecker/spellcheck_profile_provider.h
index 93769824aa7a4ccdc17f34c50555b5420c217a70..cd3d26d7c26e851bd978acdfb3f23bf664ff168e 100644
--- a/chrome/browser/spellchecker/spellcheck_profile_provider.h
+++ b/chrome/browser/spellchecker/spellcheck_profile_provider.h
@@ -9,6 +9,8 @@
#include <string>
#include <vector>
+class FilePath;
gmorrita 2011/10/19 05:27:37 Do we need this?
shinyak (Google) 2011/10/19 05:55:04 Done.
+
// A user profile provider and state notification receiver for the
// SpellCheckHost.
class SpellCheckProfileProvider {
@@ -25,6 +27,12 @@ class SpellCheckProfileProvider {
// Invoked on the Ui thread when new custom word is registered.
virtual void CustomWordAddedLocally(const std::string& word) = 0;
+ // Load custom dictionary from the disk.
+ virtual void LoadCustomDictionary(CustomWordList* custom_words) = 0;
+
+ // Wrirt a word to custom dictionary on the disk.
+ virtual void WriteWordToCustomDictionary(const std::string& word) = 0;
+
protected:
virtual ~SpellCheckProfileProvider() {}
};

Powered by Google App Engine
This is Rietveld 408576698