| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 ExtensionSpecialStoragePolicy* extension_special_storage_policy); | 153 ExtensionSpecialStoragePolicy* extension_special_storage_policy); |
| 154 virtual ExtensionSpecialStoragePolicy* | 154 virtual ExtensionSpecialStoragePolicy* |
| 155 GetExtensionSpecialStoragePolicy() OVERRIDE; | 155 GetExtensionSpecialStoragePolicy() OVERRIDE; |
| 156 virtual FaviconService* GetFaviconService(ServiceAccessType access) OVERRIDE; | 156 virtual FaviconService* GetFaviconService(ServiceAccessType access) OVERRIDE; |
| 157 virtual HistoryService* GetHistoryService(ServiceAccessType access) OVERRIDE; | 157 virtual HistoryService* GetHistoryService(ServiceAccessType access) OVERRIDE; |
| 158 virtual HistoryService* GetHistoryServiceWithoutCreating() OVERRIDE; | 158 virtual HistoryService* GetHistoryServiceWithoutCreating() OVERRIDE; |
| 159 // The CookieMonster will only be returned if a Context has been created. Do | 159 // The CookieMonster will only be returned if a Context has been created. Do |
| 160 // this by calling CreateRequestContext(). See the note at GetRequestContext | 160 // this by calling CreateRequestContext(). See the note at GetRequestContext |
| 161 // for more information. | 161 // for more information. |
| 162 net::CookieMonster* GetCookieMonster(); | 162 net::CookieMonster* GetCookieMonster(); |
| 163 virtual history::ShortcutsBackend* GetShortcutsBackend() OVERRIDE; | |
| 164 virtual policy::PolicyService* GetPolicyService() OVERRIDE; | 163 virtual policy::PolicyService* GetPolicyService() OVERRIDE; |
| 165 // Sets the profile's PrefService. If a pref service hasn't been explicitly | 164 // Sets the profile's PrefService. If a pref service hasn't been explicitly |
| 166 // set GetPrefs creates one, so normally you need not invoke this. If you need | 165 // set GetPrefs creates one, so normally you need not invoke this. If you need |
| 167 // to set a pref service you must invoke this before GetPrefs. | 166 // to set a pref service you must invoke this before GetPrefs. |
| 168 // TestingPrefService takes ownership of |prefs|. | 167 // TestingPrefService takes ownership of |prefs|. |
| 169 void SetPrefService(PrefService* prefs); | 168 void SetPrefService(PrefService* prefs); |
| 170 virtual PrefService* GetPrefs() OVERRIDE; | 169 virtual PrefService* GetPrefs() OVERRIDE; |
| 171 virtual history::TopSites* GetTopSites() OVERRIDE; | 170 virtual history::TopSites* GetTopSites() OVERRIDE; |
| 172 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; | 171 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; |
| 173 | 172 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 // testing. | 300 // testing. |
| 302 ProfileDependencyManager* profile_dependency_manager_; | 301 ProfileDependencyManager* profile_dependency_manager_; |
| 303 | 302 |
| 304 scoped_ptr<content::MockResourceContext> resource_context_; | 303 scoped_ptr<content::MockResourceContext> resource_context_; |
| 305 | 304 |
| 306 // Weak pointer to a delegate for indicating that a profile was created. | 305 // Weak pointer to a delegate for indicating that a profile was created. |
| 307 Delegate* delegate_; | 306 Delegate* delegate_; |
| 308 }; | 307 }; |
| 309 | 308 |
| 310 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 309 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
| OLD | NEW |