| OLD | NEW |
| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 const std::string& language, | 47 const std::string& language, |
| 48 net::URLRequestContextGetter* request_context_getter, | 48 net::URLRequestContextGetter* request_context_getter, |
| 49 SpellCheckHostMetrics* metrics); | 49 SpellCheckHostMetrics* metrics); |
| 50 | 50 |
| 51 virtual ~SpellCheckHostImpl(); | 51 virtual ~SpellCheckHostImpl(); |
| 52 | 52 |
| 53 void Initialize(); | 53 void Initialize(); |
| 54 | 54 |
| 55 // SpellCheckHost implementation | 55 // SpellCheckHost implementation |
| 56 virtual void UnsetProfile() OVERRIDE; | 56 virtual void UnsetProfile() OVERRIDE; |
| 57 virtual void InitForRenderer(RenderProcessHost* process) OVERRIDE; | 57 virtual void InitForRenderer(content::RenderProcessHost* process) OVERRIDE; |
| 58 virtual void AddWord(const std::string& word) OVERRIDE; | 58 virtual void AddWord(const std::string& word) OVERRIDE; |
| 59 virtual const base::PlatformFile& GetDictionaryFile() const OVERRIDE; | 59 virtual const base::PlatformFile& GetDictionaryFile() const OVERRIDE; |
| 60 virtual const std::string& GetLanguage() const OVERRIDE; | 60 virtual const std::string& GetLanguage() const OVERRIDE; |
| 61 virtual bool IsUsingPlatformChecker() const OVERRIDE; | 61 virtual bool IsUsingPlatformChecker() const OVERRIDE; |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 typedef SpellCheckProfileProvider::CustomWordList CustomWordList; | 64 typedef SpellCheckProfileProvider::CustomWordList CustomWordList; |
| 65 | 65 |
| 66 // These two classes can destruct us. | 66 // These two classes can destruct us. |
| 67 friend class content::BrowserThread; | 67 friend class content::BrowserThread; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 SpellCheckHostMetrics* metrics_; | 166 SpellCheckHostMetrics* metrics_; |
| 167 | 167 |
| 168 base::WeakPtrFactory<SpellCheckHostImpl> weak_ptr_factory_; | 168 base::WeakPtrFactory<SpellCheckHostImpl> weak_ptr_factory_; |
| 169 | 169 |
| 170 scoped_ptr<CustomWordList> custom_words_; | 170 scoped_ptr<CustomWordList> custom_words_; |
| 171 | 171 |
| 172 DISALLOW_COPY_AND_ASSIGN(SpellCheckHostImpl); | 172 DISALLOW_COPY_AND_ASSIGN(SpellCheckHostImpl); |
| 173 }; | 173 }; |
| 174 | 174 |
| 175 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_IMPL_H_ | 175 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_IMPL_H_ |
| OLD | NEW |