| 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/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/scoped_temp_dir.h" | |
| 13 #include "base/timer.h" | 13 #include "base/timer.h" |
| 14 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 14 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
| 15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
| 16 | 16 |
| 17 namespace content { | 17 namespace content { |
| 18 class MockResourceContext; | 18 class MockResourceContext; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace extensions { | 21 namespace extensions { |
| 22 class ExtensionPrefs; | 22 class ExtensionPrefs; |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 | 350 |
| 351 // The proxy prefs tracker. | 351 // The proxy prefs tracker. |
| 352 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 352 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
| 353 | 353 |
| 354 // UserCloudPolicyManager returned by GetUserCloudPolicyManager(). | 354 // UserCloudPolicyManager returned by GetUserCloudPolicyManager(). |
| 355 scoped_ptr<policy::UserCloudPolicyManager> user_cloud_policy_manager_; | 355 scoped_ptr<policy::UserCloudPolicyManager> user_cloud_policy_manager_; |
| 356 | 356 |
| 357 // We use a temporary directory to store testing profile data. In a multi- | 357 // We use a temporary directory to store testing profile data. In a multi- |
| 358 // profile environment, this is invalid and the directory is managed by the | 358 // profile environment, this is invalid and the directory is managed by the |
| 359 // TestingProfileManager. | 359 // TestingProfileManager. |
| 360 ScopedTempDir temp_dir_; | 360 base::ScopedTempDir temp_dir_; |
| 361 // The path to this profile. This will be valid in either of the two above | 361 // The path to this profile. This will be valid in either of the two above |
| 362 // cases. | 362 // cases. |
| 363 FilePath profile_path_; | 363 FilePath profile_path_; |
| 364 | 364 |
| 365 // We keep a weak pointer to the dependency manager we want to notify on our | 365 // We keep a weak pointer to the dependency manager we want to notify on our |
| 366 // death. Defaults to the Singleton implementation but overridable for | 366 // death. Defaults to the Singleton implementation but overridable for |
| 367 // testing. | 367 // testing. |
| 368 ProfileDependencyManager* profile_dependency_manager_; | 368 ProfileDependencyManager* profile_dependency_manager_; |
| 369 | 369 |
| 370 scoped_ptr<content::MockResourceContext> resource_context_; | 370 scoped_ptr<content::MockResourceContext> resource_context_; |
| 371 | 371 |
| 372 // Weak pointer to a delegate for indicating that a profile was created. | 372 // Weak pointer to a delegate for indicating that a profile was created. |
| 373 Delegate* delegate_; | 373 Delegate* delegate_; |
| 374 }; | 374 }; |
| 375 | 375 |
| 376 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 376 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
| OLD | NEW |