OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 118 |
119 // Creates a TemplateURLService. If not invoked the TemplateURLService is | 119 // Creates a TemplateURLService. If not invoked the TemplateURLService is |
120 // NULL. Creates a TemplateURLFetcher. If not invoked, the | 120 // NULL. Creates a TemplateURLFetcher. If not invoked, the |
121 // TemplateURLFetcher is NULL. | 121 // TemplateURLFetcher is NULL. |
122 void CreateTemplateURLFetcher(); | 122 void CreateTemplateURLFetcher(); |
123 | 123 |
124 // Creates a TemplateURLService. If not invoked, the TemplateURLService is | 124 // Creates a TemplateURLService. If not invoked, the TemplateURLService is |
125 // NULL. | 125 // NULL. |
126 void CreateTemplateURLService(); | 126 void CreateTemplateURLService(); |
127 | 127 |
| 128 // Blocks until TempalteURLService finishes loading. |
| 129 void BlockUntilTemplateURLServiceLoaded(); |
| 130 |
128 // Creates an ExtensionProcessManager. If not invoked, the | 131 // Creates an ExtensionProcessManager. If not invoked, the |
129 // ExtensionProcessManager is NULL. | 132 // ExtensionProcessManager is NULL. |
130 void CreateExtensionProcessManager(); | 133 void CreateExtensionProcessManager(); |
131 | 134 |
132 // Creates an ExtensionService initialized with the testing profile and | 135 // Creates an ExtensionService initialized with the testing profile and |
133 // returns it. The profile keeps its own copy of a scoped_refptr to the | 136 // returns it. The profile keeps its own copy of a scoped_refptr to the |
134 // ExtensionService to make sure that is still alive to be notified when the | 137 // ExtensionService to make sure that is still alive to be notified when the |
135 // profile is destroyed. | 138 // profile is destroyed. |
136 ExtensionService* CreateExtensionService(const CommandLine* command_line, | 139 ExtensionService* CreateExtensionService(const CommandLine* command_line, |
137 const FilePath& install_directory, | 140 const FilePath& install_directory, |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 // testing. | 409 // testing. |
407 ProfileDependencyManager* profile_dependency_manager_; | 410 ProfileDependencyManager* profile_dependency_manager_; |
408 | 411 |
409 scoped_refptr<ChromeAppCacheService> appcache_service_; | 412 scoped_refptr<ChromeAppCacheService> appcache_service_; |
410 | 413 |
411 // The QuotaManager, only available if set explicitly via SetQuotaManager. | 414 // The QuotaManager, only available if set explicitly via SetQuotaManager. |
412 scoped_refptr<quota::QuotaManager> quota_manager_; | 415 scoped_refptr<quota::QuotaManager> quota_manager_; |
413 }; | 416 }; |
414 | 417 |
415 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 418 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
OLD | NEW |