| 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 SSLHostStateDelegate; |
| 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; | 218 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; |
| 218 virtual net::URLRequestContextGetter* CreateRequestContext( | 219 virtual net::URLRequestContextGetter* CreateRequestContext( |
| 219 content::ProtocolHandlerMap* protocol_handlers, | 220 content::ProtocolHandlerMap* protocol_handlers, |
| 220 content::URLRequestInterceptorScopedVector request_interceptors) OVERRIDE; | 221 content::URLRequestInterceptorScopedVector request_interceptors) OVERRIDE; |
| 221 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 222 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
| 222 int renderer_child_id) OVERRIDE; | 223 int renderer_child_id) OVERRIDE; |
| 223 virtual content::ResourceContext* GetResourceContext() OVERRIDE; | 224 virtual content::ResourceContext* GetResourceContext() OVERRIDE; |
| 224 virtual content::BrowserPluginGuestManager* GetGuestManager() OVERRIDE; | 225 virtual content::BrowserPluginGuestManager* GetGuestManager() OVERRIDE; |
| 225 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; | 226 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; |
| 226 virtual content::PushMessagingService* GetPushMessagingService() OVERRIDE; | 227 virtual content::PushMessagingService* GetPushMessagingService() OVERRIDE; |
| 228 virtual content::SSLHostStateDelegate* GetSSLHostStateDelegate() OVERRIDE; |
| 227 | 229 |
| 228 virtual TestingProfile* AsTestingProfile() OVERRIDE; | 230 virtual TestingProfile* AsTestingProfile() OVERRIDE; |
| 229 | 231 |
| 230 // Profile | 232 // Profile |
| 231 virtual std::string GetProfileName() OVERRIDE; | 233 virtual std::string GetProfileName() OVERRIDE; |
| 232 virtual ProfileType GetProfileType() const OVERRIDE; | 234 virtual ProfileType GetProfileType() const OVERRIDE; |
| 233 | 235 |
| 234 // DEPRECATED, because it's fragile to change a profile from non-incognito | 236 // DEPRECATED, because it's fragile to change a profile from non-incognito |
| 235 // to incognito after the ProfileKeyedServices have been created (some | 237 // to incognito after the ProfileKeyedServices have been created (some |
| 236 // ProfileKeyedServices either should not exist in incognito mode, or will | 238 // ProfileKeyedServices either should not exist in incognito mode, or will |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 | 406 |
| 405 // Weak pointer to a delegate for indicating that a profile was created. | 407 // Weak pointer to a delegate for indicating that a profile was created. |
| 406 Delegate* delegate_; | 408 Delegate* delegate_; |
| 407 | 409 |
| 408 std::string profile_name_; | 410 std::string profile_name_; |
| 409 | 411 |
| 410 scoped_ptr<policy::PolicyService> policy_service_; | 412 scoped_ptr<policy::PolicyService> policy_service_; |
| 411 }; | 413 }; |
| 412 | 414 |
| 413 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 415 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
| OLD | NEW |