| 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_PROFILE_H_ | 5 #ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_PROFILE_H_ |
| 6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_PROFILE_H_ | 6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_PROFILE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 SpellCheckProfileProvider* provider, | 96 SpellCheckProfileProvider* provider, |
| 97 const std::string& language, | 97 const std::string& language, |
| 98 net::URLRequestContextGetter* request_context, | 98 net::URLRequestContextGetter* request_context, |
| 99 SpellCheckHostMetrics* metrics); | 99 SpellCheckHostMetrics* metrics); |
| 100 | 100 |
| 101 virtual bool IsTesting() const; | 101 virtual bool IsTesting() const; |
| 102 | 102 |
| 103 private: | 103 private: |
| 104 const FilePath& GetCustomDictionaryPath(); | 104 const FilePath& GetCustomDictionaryPath(); |
| 105 | 105 |
| 106 scoped_refptr<SpellCheckHost> host_; | 106 scoped_ptr<SpellCheckHost> host_; |
| 107 scoped_ptr<SpellCheckHostMetrics> metrics_; | 107 scoped_ptr<SpellCheckHostMetrics> metrics_; |
| 108 | 108 |
| 109 // Indicates whether |host_| has told us initialization is | 109 // Indicates whether |host_| has told us initialization is |
| 110 // finished. | 110 // finished. |
| 111 bool host_ready_; | 111 bool host_ready_; |
| 112 | 112 |
| 113 // In-memory cache of the custom words file. | 113 // In-memory cache of the custom words file. |
| 114 scoped_ptr<CustomWordList> custom_words_; | 114 scoped_ptr<CustomWordList> custom_words_; |
| 115 | 115 |
| 116 // A directory path of profile. | 116 // A directory path of profile. |
| 117 FilePath profile_dir_; | 117 FilePath profile_dir_; |
| 118 | 118 |
| 119 // A path for custom dictionary per profile. | 119 // A path for custom dictionary per profile. |
| 120 scoped_ptr<FilePath> custom_dictionary_path_; | 120 scoped_ptr<FilePath> custom_dictionary_path_; |
| 121 | 121 |
| 122 DISALLOW_COPY_AND_ASSIGN(SpellCheckProfile); | 122 DISALLOW_COPY_AND_ASSIGN(SpellCheckProfile); |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_PROFILE_H_ | 125 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_PROFILE_H_ |
| OLD | NEW |