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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 | 303 |
304 // Common initialization between the two constructors. | 304 // Common initialization between the two constructors. |
305 void Init(); | 305 void Init(); |
306 | 306 |
307 // Finishes initialization when a profile is created asynchronously. | 307 // Finishes initialization when a profile is created asynchronously. |
308 void FinishInit(); | 308 void FinishInit(); |
309 | 309 |
310 // Creates a TestingPrefService and associates it with the TestingProfile. | 310 // Creates a TestingPrefService and associates it with the TestingProfile. |
311 void CreateTestingPrefService(); | 311 void CreateTestingPrefService(); |
312 | 312 |
313 virtual base::Callback<ChromeURLDataManagerBackend*(void)> | |
314 GetChromeURLDataManagerBackendGetter() const OVERRIDE; | |
315 | |
316 // The policy service. Lazily created as a stub. | 313 // The policy service. Lazily created as a stub. |
317 scoped_ptr<policy::PolicyService> policy_service_; | 314 scoped_ptr<policy::PolicyService> policy_service_; |
318 | 315 |
319 // Internally, this is a TestURLRequestContextGetter that creates a dummy | 316 // Internally, this is a TestURLRequestContextGetter that creates a dummy |
320 // request context. Currently, only the CookieMonster is hooked up. | 317 // request context. Currently, only the CookieMonster is hooked up. |
321 scoped_refptr<net::URLRequestContextGetter> request_context_; | 318 scoped_refptr<net::URLRequestContextGetter> request_context_; |
322 scoped_refptr<net::URLRequestContextGetter> extensions_request_context_; | 319 scoped_refptr<net::URLRequestContextGetter> extensions_request_context_; |
323 | 320 |
324 std::wstring id_; | 321 std::wstring id_; |
325 | 322 |
(...skipping 27 matching lines...) Expand all Loading... |
353 // testing. | 350 // testing. |
354 ProfileDependencyManager* profile_dependency_manager_; | 351 ProfileDependencyManager* profile_dependency_manager_; |
355 | 352 |
356 scoped_ptr<content::MockResourceContext> resource_context_; | 353 scoped_ptr<content::MockResourceContext> resource_context_; |
357 | 354 |
358 // Weak pointer to a delegate for indicating that a profile was created. | 355 // Weak pointer to a delegate for indicating that a profile was created. |
359 Delegate* delegate_; | 356 Delegate* delegate_; |
360 }; | 357 }; |
361 | 358 |
362 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 359 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
OLD | NEW |