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

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

Issue 12086018: GTTF: Add missing virtual destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 4 Created 7 years, 10 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) 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_BROWSER_SPELLCHECKER_SPELLCHECK_CUSTOM_DICTIONARY_H_ 5 #ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_CUSTOM_DICTIONARY_H_
6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_CUSTOM_DICTIONARY_H_ 6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_CUSTOM_DICTIONARY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // The words to be added. 60 // The words to be added.
61 chrome::spellcheck_common::WordList to_add_; 61 chrome::spellcheck_common::WordList to_add_;
62 62
63 // The words to be removed. 63 // The words to be removed.
64 chrome::spellcheck_common::WordList to_remove_; 64 chrome::spellcheck_common::WordList to_remove_;
65 }; 65 };
66 66
67 // Interface to implement for dictionary load and change observers. 67 // Interface to implement for dictionary load and change observers.
68 class Observer { 68 class Observer {
69 public: 69 public:
70 virtual ~Observer() { }
71
70 // Called when the custom dictionary has been loaded. 72 // Called when the custom dictionary has been loaded.
71 virtual void OnCustomDictionaryLoaded() = 0; 73 virtual void OnCustomDictionaryLoaded() = 0;
72 74
73 // Called when the custom dictionary has been changed. 75 // Called when the custom dictionary has been changed.
74 virtual void OnCustomDictionaryChanged(const Change& dictionary_change) = 0; 76 virtual void OnCustomDictionaryChanged(const Change& dictionary_change) = 0;
75 }; 77 };
76 78
77 explicit SpellcheckCustomDictionary(const FilePath& path); 79 explicit SpellcheckCustomDictionary(const FilePath& path);
78 virtual ~SpellcheckCustomDictionary(); 80 virtual ~SpellcheckCustomDictionary();
79 81
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 // Used to send sync-related errors to the sync infrastructure. 177 // Used to send sync-related errors to the sync infrastructure.
176 scoped_ptr<syncer::SyncErrorFactory> sync_error_handler_; 178 scoped_ptr<syncer::SyncErrorFactory> sync_error_handler_;
177 179
178 // True if the dictionary has been loaded. Otherwise false. 180 // True if the dictionary has been loaded. Otherwise false.
179 bool is_loaded_; 181 bool is_loaded_;
180 182
181 DISALLOW_COPY_AND_ASSIGN(SpellcheckCustomDictionary); 183 DISALLOW_COPY_AND_ASSIGN(SpellcheckCustomDictionary);
182 }; 184 };
183 185
184 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_CUSTOM_DICTIONARY_H_ 186 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_CUSTOM_DICTIONARY_H_
OLDNEW
« no previous file with comments | « chrome/browser/signin/signin_tracker.h ('k') | chrome/browser/spellchecker/spellcheck_hunspell_dictionary.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698