| 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" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 14 #include "components/domain_reliability/clear_mode.h" | 14 #include "components/domain_reliability/clear_mode.h" |
| 15 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" | 15 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" |
| 16 | 16 |
| 17 namespace content { | 17 namespace content { |
| 18 class MockResourceContext; | 18 class MockResourceContext; |
| 19 class SSLHostStateDecisions; |
| 19 } | 20 } |
| 20 | 21 |
| 21 namespace history { | 22 namespace history { |
| 22 class TopSites; | 23 class TopSites; |
| 23 } | 24 } |
| 24 | 25 |
| 25 namespace net { | 26 namespace net { |
| 26 class CookieMonster; | 27 class CookieMonster; |
| 27 class URLRequestContextGetter; | 28 class URLRequestContextGetter; |
| 28 } | 29 } |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; | 212 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; |
| 212 virtual net::URLRequestContextGetter* CreateRequestContext( | 213 virtual net::URLRequestContextGetter* CreateRequestContext( |
| 213 content::ProtocolHandlerMap* protocol_handlers, | 214 content::ProtocolHandlerMap* protocol_handlers, |
| 214 content::URLRequestInterceptorScopedVector request_interceptors) OVERRIDE; | 215 content::URLRequestInterceptorScopedVector request_interceptors) OVERRIDE; |
| 215 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 216 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
| 216 int renderer_child_id) OVERRIDE; | 217 int renderer_child_id) OVERRIDE; |
| 217 virtual content::ResourceContext* GetResourceContext() OVERRIDE; | 218 virtual content::ResourceContext* GetResourceContext() OVERRIDE; |
| 218 virtual content::BrowserPluginGuestManager* GetGuestManager() OVERRIDE; | 219 virtual content::BrowserPluginGuestManager* GetGuestManager() OVERRIDE; |
| 219 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; | 220 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; |
| 220 virtual content::PushMessagingService* GetPushMessagingService() OVERRIDE; | 221 virtual content::PushMessagingService* GetPushMessagingService() OVERRIDE; |
| 222 virtual content::SSLHostStateDecisions* GetSSLHostStateDecisions() OVERRIDE; |
| 221 | 223 |
| 222 virtual TestingProfile* AsTestingProfile() OVERRIDE; | 224 virtual TestingProfile* AsTestingProfile() OVERRIDE; |
| 223 | 225 |
| 224 // Profile | 226 // Profile |
| 225 virtual std::string GetProfileName() OVERRIDE; | 227 virtual std::string GetProfileName() OVERRIDE; |
| 226 virtual ProfileType GetProfileType() const OVERRIDE; | 228 virtual ProfileType GetProfileType() const OVERRIDE; |
| 227 | 229 |
| 228 // DEPRECATED, because it's fragile to change a profile from non-incognito | 230 // DEPRECATED, because it's fragile to change a profile from non-incognito |
| 229 // to incognito after the ProfileKeyedServices have been created (some | 231 // to incognito after the ProfileKeyedServices have been created (some |
| 230 // ProfileKeyedServices either should not exist in incognito mode, or will | 232 // ProfileKeyedServices either should not exist in incognito mode, or will |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 | 397 |
| 396 // Weak pointer to a delegate for indicating that a profile was created. | 398 // Weak pointer to a delegate for indicating that a profile was created. |
| 397 Delegate* delegate_; | 399 Delegate* delegate_; |
| 398 | 400 |
| 399 std::string profile_name_; | 401 std::string profile_name_; |
| 400 | 402 |
| 401 scoped_ptr<policy::PolicyService> policy_service_; | 403 scoped_ptr<policy::PolicyService> policy_service_; |
| 402 }; | 404 }; |
| 403 | 405 |
| 404 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 406 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
| OLD | NEW |