| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 // from the destructor. | 202 // from the destructor. |
| 203 void DestroyHistoryService(); | 203 void DestroyHistoryService(); |
| 204 | 204 |
| 205 // The history service. Only created if CreateHistoryService is invoked. | 205 // The history service. Only created if CreateHistoryService is invoked. |
| 206 scoped_refptr<HistoryService> history_service_; | 206 scoped_refptr<HistoryService> history_service_; |
| 207 | 207 |
| 208 // The BookmarkModel. Only created if CreateBookmarkModel is invoked. | 208 // The BookmarkModel. Only created if CreateBookmarkModel is invoked. |
| 209 scoped_ptr<BookmarkModel> bookmark_bar_model_; | 209 scoped_ptr<BookmarkModel> bookmark_bar_model_; |
| 210 | 210 |
| 211 // The ProfileSyncService. Created by CreateProfileSyncService. | 211 // The ProfileSyncService. Created by CreateProfileSyncService. |
| 212 #if defined(BROWSER_SYNC) | |
| 213 scoped_ptr<ProfileSyncService> profile_sync_service_; | 212 scoped_ptr<ProfileSyncService> profile_sync_service_; |
| 214 #endif | |
| 215 | 213 |
| 216 // The TemplateURLFetcher. Only created if CreateTemplateURLModel is invoked. | 214 // The TemplateURLFetcher. Only created if CreateTemplateURLModel is invoked. |
| 217 scoped_ptr<TemplateURLModel> template_url_model_; | 215 scoped_ptr<TemplateURLModel> template_url_model_; |
| 218 | 216 |
| 219 // The SessionService. Defaults to NULL, but can be set using the setter. | 217 // The SessionService. Defaults to NULL, but can be set using the setter. |
| 220 scoped_refptr<SessionService> session_service_; | 218 scoped_refptr<SessionService> session_service_; |
| 221 | 219 |
| 222 // The theme provider. Created lazily by GetThemeProvider()/InitThemes(). | 220 // The theme provider. Created lazily by GetThemeProvider()/InitThemes(). |
| 223 scoped_ptr<BrowserThemeProvider> theme_provider_; | 221 scoped_ptr<BrowserThemeProvider> theme_provider_; |
| 224 bool created_theme_provider_; | 222 bool created_theme_provider_; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 245 | 243 |
| 246 virtual ProfileId GetRuntimeId() { | 244 virtual ProfileId GetRuntimeId() { |
| 247 return original_profile_->GetRuntimeId(); | 245 return original_profile_->GetRuntimeId(); |
| 248 } | 246 } |
| 249 | 247 |
| 250 protected: | 248 protected: |
| 251 Profile* original_profile_; | 249 Profile* original_profile_; |
| 252 }; | 250 }; |
| 253 | 251 |
| 254 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 252 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
| OLD | NEW |