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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 // (1) Some tests depend on GetRequestContext() returning NULL. (2) Because | 157 // (1) Some tests depend on GetRequestContext() returning NULL. (2) Because |
158 // of the special memory management considerations for the | 158 // of the special memory management considerations for the |
159 // TestURLRequestContextGetter class, many tests would find themseleves | 159 // TestURLRequestContextGetter class, many tests would find themseleves |
160 // leaking if they called this method without the necessary IO thread. This | 160 // leaking if they called this method without the necessary IO thread. This |
161 // getter is currently only capable of returning a Context that helps test | 161 // getter is currently only capable of returning a Context that helps test |
162 // the CookieMonster. See implementation comments for more details. | 162 // the CookieMonster. See implementation comments for more details. |
163 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; | 163 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; |
164 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 164 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
165 int renderer_child_id) OVERRIDE; | 165 int renderer_child_id) OVERRIDE; |
166 virtual content::ResourceContext* GetResourceContext() OVERRIDE; | 166 virtual content::ResourceContext* GetResourceContext() OVERRIDE; |
167 virtual content::HostZoomMap* GetHostZoomMap() OVERRIDE; | |
168 virtual content::GeolocationPermissionContext* | 167 virtual content::GeolocationPermissionContext* |
169 GetGeolocationPermissionContext() OVERRIDE; | 168 GetGeolocationPermissionContext() OVERRIDE; |
170 virtual content::SpeechInputPreferences* GetSpeechInputPreferences() OVERRIDE; | 169 virtual content::SpeechInputPreferences* GetSpeechInputPreferences() OVERRIDE; |
171 virtual bool DidLastSessionExitCleanly() OVERRIDE; | 170 virtual bool DidLastSessionExitCleanly() OVERRIDE; |
172 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; | 171 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; |
173 | 172 |
174 virtual TestingProfile* AsTestingProfile() OVERRIDE; | 173 virtual TestingProfile* AsTestingProfile() OVERRIDE; |
175 virtual std::string GetProfileName() OVERRIDE; | 174 virtual std::string GetProfileName() OVERRIDE; |
176 void set_incognito(bool incognito) { incognito_ = incognito; } | 175 void set_incognito(bool incognito) { incognito_ = incognito; } |
177 // Assumes ownership. | 176 // Assumes ownership. |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 // testing. | 384 // testing. |
386 ProfileDependencyManager* profile_dependency_manager_; | 385 ProfileDependencyManager* profile_dependency_manager_; |
387 | 386 |
388 scoped_ptr<content::MockResourceContext> resource_context_; | 387 scoped_ptr<content::MockResourceContext> resource_context_; |
389 | 388 |
390 // Weak pointer to a delegate for indicating that a profile was created. | 389 // Weak pointer to a delegate for indicating that a profile was created. |
391 Delegate* delegate_; | 390 Delegate* delegate_; |
392 }; | 391 }; |
393 | 392 |
394 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 393 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
OLD | NEW |