| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_TEST_TESTING_PROFILE_H_ | 5 #ifndef CHROME_TEST_TESTING_PROFILE_H_ |
| 6 #define CHROME_TEST_TESTING_PROFILE_H_ | 6 #define CHROME_TEST_TESTING_PROFILE_H_ |
| 7 | 7 |
| 8 #include "base/base_paths.h" | 8 #include "base/base_paths.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 std::wstring* output_string) {} | 168 std::wstring* output_string) {} |
| 169 virtual void MergeResourceInteger(int message_id, int* output_value) {} | 169 virtual void MergeResourceInteger(int message_id, int* output_value) {} |
| 170 virtual void MergeResourceBoolean(int message_id, bool* output_value) {} | 170 virtual void MergeResourceBoolean(int message_id, bool* output_value) {} |
| 171 virtual BookmarkModel* GetBookmarkModel() { | 171 virtual BookmarkModel* GetBookmarkModel() { |
| 172 return bookmark_bar_model_.get(); | 172 return bookmark_bar_model_.get(); |
| 173 } | 173 } |
| 174 virtual bool IsSameProfile(Profile *p) { return this == p; } | 174 virtual bool IsSameProfile(Profile *p) { return this == p; } |
| 175 virtual base::Time GetStartTime() const { return start_time_; } | 175 virtual base::Time GetStartTime() const { return start_time_; } |
| 176 virtual TabRestoreService* GetTabRestoreService() { return NULL; } | 176 virtual TabRestoreService* GetTabRestoreService() { return NULL; } |
| 177 virtual void ResetTabRestoreService() {} | 177 virtual void ResetTabRestoreService() {} |
| 178 virtual void ReinitializeSpellChecker() {} | |
| 179 virtual SpellChecker* GetSpellChecker() { return NULL; } | |
| 180 virtual void DeleteSpellChecker() {} | |
| 181 #if defined(SPELLCHECKER_IN_RENDERER) | |
| 182 virtual SpellCheckHost* GetSpellCheckHost() { return NULL; } | 178 virtual SpellCheckHost* GetSpellCheckHost() { return NULL; } |
| 183 virtual void ReinitializeSpellCheckHost(bool force) { } | 179 virtual void ReinitializeSpellCheckHost(bool force) { } |
| 184 #endif | |
| 185 virtual WebKitContext* GetWebKitContext() { return NULL; } | 180 virtual WebKitContext* GetWebKitContext() { return NULL; } |
| 186 virtual WebKitContext* GetOffTheRecordWebKitContext() { return NULL; } | 181 virtual WebKitContext* GetOffTheRecordWebKitContext() { return NULL; } |
| 187 virtual void MarkAsCleanShutdown() {} | 182 virtual void MarkAsCleanShutdown() {} |
| 188 virtual void InitExtensions() {} | 183 virtual void InitExtensions() {} |
| 189 virtual void InitWebResources() {} | 184 virtual void InitWebResources() {} |
| 190 virtual DesktopNotificationService* GetDesktopNotificationService() { | 185 virtual DesktopNotificationService* GetDesktopNotificationService() { |
| 191 return NULL; | 186 return NULL; |
| 192 } | 187 } |
| 193 | 188 |
| 194 // Schedules a task on the history backend and runs a nested loop until the | 189 // Schedules a task on the history backend and runs a nested loop until the |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 | 252 |
| 258 virtual ProfileId GetRuntimeId() { | 253 virtual ProfileId GetRuntimeId() { |
| 259 return original_profile_->GetRuntimeId(); | 254 return original_profile_->GetRuntimeId(); |
| 260 } | 255 } |
| 261 | 256 |
| 262 protected: | 257 protected: |
| 263 Profile* original_profile_; | 258 Profile* original_profile_; |
| 264 }; | 259 }; |
| 265 | 260 |
| 266 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 261 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
| OLD | NEW |