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

Side by Side Diff: chrome/browser/spellchecker/spellcheck_hunspell_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_HUNSPELL_DICTIONARY_H_ 5 #ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HUNSPELL_DICTIONARY_H_
6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HUNSPELL_DICTIONARY_H_ 6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HUNSPELL_DICTIONARY_H_
7 7
8 #include "chrome/browser/spellchecker/spellcheck_dictionary.h" 8 #include "chrome/browser/spellchecker/spellcheck_dictionary.h"
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 13 matching lines...) Expand all
24 24
25 // Defines the browser-side hunspell dictionary and provides access to it. 25 // Defines the browser-side hunspell dictionary and provides access to it.
26 class SpellcheckHunspellDictionary 26 class SpellcheckHunspellDictionary
27 : public SpellcheckDictionary, 27 : public SpellcheckDictionary,
28 public net::URLFetcherDelegate, 28 public net::URLFetcherDelegate,
29 public base::SupportsWeakPtr<SpellcheckHunspellDictionary> { 29 public base::SupportsWeakPtr<SpellcheckHunspellDictionary> {
30 public: 30 public:
31 // Interface to implement for observers of the Hunspell dictionary. 31 // Interface to implement for observers of the Hunspell dictionary.
32 class Observer { 32 class Observer {
33 public: 33 public:
34 virtual ~Observer() { }
35
34 // The dictionary has been initialized. 36 // The dictionary has been initialized.
35 virtual void OnHunspellDictionaryInitialized() = 0; 37 virtual void OnHunspellDictionaryInitialized() = 0;
36 38
37 // Dictionary download began. 39 // Dictionary download began.
38 virtual void OnHunspellDictionaryDownloadBegin() = 0; 40 virtual void OnHunspellDictionaryDownloadBegin() = 0;
39 41
40 // Dictionary download succeeded. 42 // Dictionary download succeeded.
41 virtual void OnHunspellDictionaryDownloadSuccess() = 0; 43 virtual void OnHunspellDictionaryDownloadSuccess() = 0;
42 44
43 // Dictionary download failed. 45 // Dictionary download failed.
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // Observers of Hunspell dictionary events. 154 // Observers of Hunspell dictionary events.
153 ObserverList<Observer> observers_; 155 ObserverList<Observer> observers_;
154 156
155 // Status of the dictionary download. 157 // Status of the dictionary download.
156 DownloadStatus download_status_; 158 DownloadStatus download_status_;
157 159
158 DISALLOW_COPY_AND_ASSIGN(SpellcheckHunspellDictionary); 160 DISALLOW_COPY_AND_ASSIGN(SpellcheckHunspellDictionary);
159 }; 161 };
160 162
161 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HUNSPELL_DICTIONARY_H_ 163 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HUNSPELL_DICTIONARY_H_
OLDNEW
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_custom_dictionary.h ('k') | chrome/browser/tab_contents/render_view_context_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698