| 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 // profile environment, this is invalid and the directory is managed by the | 336 // profile environment, this is invalid and the directory is managed by the |
| 337 // TestingProfileManager. | 337 // TestingProfileManager. |
| 338 base::ScopedTempDir temp_dir_; | 338 base::ScopedTempDir temp_dir_; |
| 339 // The path to this profile. This will be valid in either of the two above | 339 // The path to this profile. This will be valid in either of the two above |
| 340 // cases. | 340 // cases. |
| 341 base::FilePath profile_path_; | 341 base::FilePath profile_path_; |
| 342 | 342 |
| 343 // We keep a weak pointer to the dependency manager we want to notify on our | 343 // We keep a weak pointer to the dependency manager we want to notify on our |
| 344 // death. Defaults to the Singleton implementation but overridable for | 344 // death. Defaults to the Singleton implementation but overridable for |
| 345 // testing. | 345 // testing. |
| 346 BrowserContextDependencyManager* profile_dependency_manager_; | 346 BrowserContextDependencyManager* browser_context_dependency_manager_; |
| 347 | 347 |
| 348 scoped_ptr<content::MockResourceContext> resource_context_; | 348 scoped_ptr<content::MockResourceContext> resource_context_; |
| 349 | 349 |
| 350 scoped_ptr<policy::ProfilePolicyConnector> profile_policy_connector_; | 350 scoped_ptr<policy::ProfilePolicyConnector> profile_policy_connector_; |
| 351 | 351 |
| 352 // Weak pointer to a delegate for indicating that a profile was created. | 352 // Weak pointer to a delegate for indicating that a profile was created. |
| 353 Delegate* delegate_; | 353 Delegate* delegate_; |
| 354 }; | 354 }; |
| 355 | 355 |
| 356 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 356 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
| OLD | NEW |