| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BASE_TESTING_PROFILE_H_ | 5 #ifndef CHROME_TEST_BASE_TESTING_PROFILE_H_ |
| 6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_ | 6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 virtual HistoryService* GetHistoryService(ServiceAccessType access) OVERRIDE; | 194 virtual HistoryService* GetHistoryService(ServiceAccessType access) OVERRIDE; |
| 195 virtual HistoryService* GetHistoryServiceWithoutCreating() OVERRIDE; | 195 virtual HistoryService* GetHistoryServiceWithoutCreating() OVERRIDE; |
| 196 // The CookieMonster will only be returned if a Context has been created. Do | 196 // The CookieMonster will only be returned if a Context has been created. Do |
| 197 // this by calling CreateRequestContext(). See the note at GetRequestContext | 197 // this by calling CreateRequestContext(). See the note at GetRequestContext |
| 198 // for more information. | 198 // for more information. |
| 199 net::CookieMonster* GetCookieMonster(); | 199 net::CookieMonster* GetCookieMonster(); |
| 200 virtual AutocompleteClassifier* GetAutocompleteClassifier() OVERRIDE; | 200 virtual AutocompleteClassifier* GetAutocompleteClassifier() OVERRIDE; |
| 201 virtual history::ShortcutsBackend* GetShortcutsBackend() OVERRIDE; | 201 virtual history::ShortcutsBackend* GetShortcutsBackend() OVERRIDE; |
| 202 virtual WebDataService* GetWebDataService(ServiceAccessType access) OVERRIDE; | 202 virtual WebDataService* GetWebDataService(ServiceAccessType access) OVERRIDE; |
| 203 virtual WebDataService* GetWebDataServiceWithoutCreating() OVERRIDE; | 203 virtual WebDataService* GetWebDataServiceWithoutCreating() OVERRIDE; |
| 204 virtual PasswordStore* GetPasswordStore(ServiceAccessType access) OVERRIDE; | |
| 205 // Sets the profile's PrefService. If a pref service hasn't been explicitly | 204 // Sets the profile's PrefService. If a pref service hasn't been explicitly |
| 206 // set GetPrefs creates one, so normally you need not invoke this. If you need | 205 // set GetPrefs creates one, so normally you need not invoke this. If you need |
| 207 // to set a pref service you must invoke this before GetPrefs. | 206 // to set a pref service you must invoke this before GetPrefs. |
| 208 // TestingPrefService takes ownership of |prefs|. | 207 // TestingPrefService takes ownership of |prefs|. |
| 209 void SetPrefService(PrefService* prefs); | 208 void SetPrefService(PrefService* prefs); |
| 210 virtual PrefService* GetPrefs() OVERRIDE; | 209 virtual PrefService* GetPrefs() OVERRIDE; |
| 211 virtual TemplateURLFetcher* GetTemplateURLFetcher() OVERRIDE; | 210 virtual TemplateURLFetcher* GetTemplateURLFetcher() OVERRIDE; |
| 212 virtual history::TopSites* GetTopSites() OVERRIDE; | 211 virtual history::TopSites* GetTopSites() OVERRIDE; |
| 213 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; | 212 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; |
| 214 | 213 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 // testing. | 378 // testing. |
| 380 ProfileDependencyManager* profile_dependency_manager_; | 379 ProfileDependencyManager* profile_dependency_manager_; |
| 381 | 380 |
| 382 scoped_ptr<content::MockResourceContext> resource_context_; | 381 scoped_ptr<content::MockResourceContext> resource_context_; |
| 383 | 382 |
| 384 // Weak pointer to a delegate for indicating that a profile was created. | 383 // Weak pointer to a delegate for indicating that a profile was created. |
| 385 Delegate* delegate_; | 384 Delegate* delegate_; |
| 386 }; | 385 }; |
| 387 | 386 |
| 388 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 387 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
| OLD | NEW |