| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 virtual BookmarkModel* GetBookmarkModel() { | 170 virtual BookmarkModel* GetBookmarkModel() { |
| 171 return bookmark_bar_model_.get(); | 171 return bookmark_bar_model_.get(); |
| 172 } | 172 } |
| 173 virtual bool IsSameProfile(Profile *p) { return this == p; } | 173 virtual bool IsSameProfile(Profile *p) { return this == p; } |
| 174 virtual base::Time GetStartTime() const { return start_time_; } | 174 virtual base::Time GetStartTime() const { return start_time_; } |
| 175 virtual TabRestoreService* GetTabRestoreService() { return NULL; } | 175 virtual TabRestoreService* GetTabRestoreService() { return NULL; } |
| 176 virtual void ResetTabRestoreService() {} | 176 virtual void ResetTabRestoreService() {} |
| 177 virtual void ReinitializeSpellChecker() {} | 177 virtual void ReinitializeSpellChecker() {} |
| 178 virtual SpellChecker* GetSpellChecker() { return NULL; } | 178 virtual SpellChecker* GetSpellChecker() { return NULL; } |
| 179 virtual void DeleteSpellChecker() {} | 179 virtual void DeleteSpellChecker() {} |
| 180 #if defined(SPELLCHECKER_IN_RENDERER) |
| 181 virtual SpellCheckHost* GetSpellCheckHost() { return NULL; } |
| 182 virtual void ReinitializeSpellCheckHost(bool force) { } |
| 183 #endif |
| 180 virtual WebKitContext* GetWebKitContext() { return NULL; } | 184 virtual WebKitContext* GetWebKitContext() { return NULL; } |
| 181 virtual WebKitContext* GetOffTheRecordWebKitContext() { return NULL; } | 185 virtual WebKitContext* GetOffTheRecordWebKitContext() { return NULL; } |
| 182 virtual void MarkAsCleanShutdown() {} | 186 virtual void MarkAsCleanShutdown() {} |
| 183 virtual void InitExtensions() {} | 187 virtual void InitExtensions() {} |
| 184 virtual void InitWebResources() {} | 188 virtual void InitWebResources() {} |
| 185 virtual DesktopNotificationService* GetDesktopNotificationService() { | 189 virtual DesktopNotificationService* GetDesktopNotificationService() { |
| 186 return NULL; | 190 return NULL; |
| 187 } | 191 } |
| 188 | 192 |
| 189 // Schedules a task on the history backend and runs a nested loop until the | 193 // Schedules a task on the history backend and runs a nested loop until the |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 | 252 |
| 249 virtual ProfileId GetRuntimeId() { | 253 virtual ProfileId GetRuntimeId() { |
| 250 return original_profile_->GetRuntimeId(); | 254 return original_profile_->GetRuntimeId(); |
| 251 } | 255 } |
| 252 | 256 |
| 253 protected: | 257 protected: |
| 254 Profile* original_profile_; | 258 Profile* original_profile_; |
| 255 }; | 259 }; |
| 256 | 260 |
| 257 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 261 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
| OLD | NEW |