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

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

Issue 12224027: Revert "GTTF: Add missing virtual destructors." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
72 // Called when the custom dictionary has been loaded. 70 // Called when the custom dictionary has been loaded.
73 virtual void OnCustomDictionaryLoaded() = 0; 71 virtual void OnCustomDictionaryLoaded() = 0;
74 72
75 // Called when the custom dictionary has been changed. 73 // Called when the custom dictionary has been changed.
76 virtual void OnCustomDictionaryChanged(const Change& dictionary_change) = 0; 74 virtual void OnCustomDictionaryChanged(const Change& dictionary_change) = 0;
77 }; 75 };
78 76
79 explicit SpellcheckCustomDictionary(const FilePath& path); 77 explicit SpellcheckCustomDictionary(const FilePath& path);
80 virtual ~SpellcheckCustomDictionary(); 78 virtual ~SpellcheckCustomDictionary();
81 79
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // Used to send sync-related errors to the sync infrastructure. 175 // Used to send sync-related errors to the sync infrastructure.
178 scoped_ptr<syncer::SyncErrorFactory> sync_error_handler_; 176 scoped_ptr<syncer::SyncErrorFactory> sync_error_handler_;
179 177
180 // True if the dictionary has been loaded. Otherwise false. 178 // True if the dictionary has been loaded. Otherwise false.
181 bool is_loaded_; 179 bool is_loaded_;
182 180
183 DISALLOW_COPY_AND_ASSIGN(SpellcheckCustomDictionary); 181 DISALLOW_COPY_AND_ASSIGN(SpellcheckCustomDictionary);
184 }; 182 };
185 183
186 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_CUSTOM_DICTIONARY_H_ 184 #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