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 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 | 400 |
401 // We keep a weak pointer to the dependency manager we want to notify on our | 401 // We keep a weak pointer to the dependency manager we want to notify on our |
402 // death. Defaults to the Singleton implementation but overridable for | 402 // death. Defaults to the Singleton implementation but overridable for |
403 // testing. | 403 // testing. |
404 BrowserContextDependencyManager* browser_context_dependency_manager_; | 404 BrowserContextDependencyManager* browser_context_dependency_manager_; |
405 | 405 |
406 // Owned, but must be deleted on the IO thread so not placing in a | 406 // Owned, but must be deleted on the IO thread so not placing in a |
407 // scoped_ptr<>. | 407 // scoped_ptr<>. |
408 content::MockResourceContext* resource_context_; | 408 content::MockResourceContext* resource_context_; |
409 | 409 |
410 #if defined(ENABLE_CONFIGURATION_POLICY) | |
411 scoped_ptr<policy::SchemaRegistryService> schema_registry_service_; | 410 scoped_ptr<policy::SchemaRegistryService> schema_registry_service_; |
412 #endif | |
413 scoped_ptr<policy::ProfilePolicyConnector> profile_policy_connector_; | 411 scoped_ptr<policy::ProfilePolicyConnector> profile_policy_connector_; |
414 | 412 |
415 // Weak pointer to a delegate for indicating that a profile was created. | 413 // Weak pointer to a delegate for indicating that a profile was created. |
416 Delegate* delegate_; | 414 Delegate* delegate_; |
417 | 415 |
418 std::string profile_name_; | 416 std::string profile_name_; |
419 | 417 |
420 scoped_ptr<policy::PolicyService> policy_service_; | 418 scoped_ptr<policy::PolicyService> policy_service_; |
421 }; | 419 }; |
422 | 420 |
423 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 421 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
OLD | NEW |