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

Side by Side Diff: chrome/browser/spellchecker/spellcheck_host_impl.h

Issue 8345034: SpellCheck: the custom dictionary should be per profile. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Update. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_IMPL_H_ 5 #ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_IMPL_H_
6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_IMPL_H_ 6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 void InformProfileOfInitializationWithCustomWords( 85 void InformProfileOfInitializationWithCustomWords(
86 CustomWordList* custom_words); 86 CustomWordList* custom_words);
87 87
88 // An alternative version of InformProfileOfInitializationWithCustomWords() 88 // An alternative version of InformProfileOfInitializationWithCustomWords()
89 // which implies empty |custom_words|. 89 // which implies empty |custom_words|.
90 void InformProfileOfInitialization(); 90 void InformProfileOfInitialization();
91 91
92 // If |dictionary_file_| is missing, we attempt to download it. 92 // If |dictionary_file_| is missing, we attempt to download it.
93 void DownloadDictionary(); 93 void DownloadDictionary();
94 94
95 // Loads a custom dictionary from disk.
96 void LoadCustomDictionary(CustomWordList* custom_words);
97
95 // Write a custom dictionary addition to disk. 98 // Write a custom dictionary addition to disk.
96 void WriteWordToCustomDictionary(const std::string& word); 99 void WriteWordToCustomDictionary(const std::string& word);
97 100
98 // Returns a metrics counter associated with this object, 101 // Returns a metrics counter associated with this object,
99 // or null when metrics recording is disabled. 102 // or null when metrics recording is disabled.
100 virtual SpellCheckHostMetrics* GetMetrics() const; 103 virtual SpellCheckHostMetrics* GetMetrics() const;
101 104
102 // Returns true if the dictionary is ready to use. 105 // Returns true if the dictionary is ready to use.
103 virtual bool IsReady() const; 106 virtual bool IsReady() const;
104 107
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 156
154 content::NotificationRegistrar registrar_; 157 content::NotificationRegistrar registrar_;
155 158
156 // An optional metrics counter given by the constructor. 159 // An optional metrics counter given by the constructor.
157 SpellCheckHostMetrics* metrics_; 160 SpellCheckHostMetrics* metrics_;
158 161
159 DISALLOW_COPY_AND_ASSIGN(SpellCheckHostImpl); 162 DISALLOW_COPY_AND_ASSIGN(SpellCheckHostImpl);
160 }; 163 };
161 164
162 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_IMPL_H_ 165 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/spellchecker/spellcheck_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698