| 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/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 // down the IO thread to avoid leaks). | 238 // down the IO thread to avoid leaks). |
| 239 void ResetRequestContext(); | 239 void ResetRequestContext(); |
| 240 | 240 |
| 241 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; | 241 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; |
| 242 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( | 242 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( |
| 243 int renderer_child_id) OVERRIDE; | 243 int renderer_child_id) OVERRIDE; |
| 244 virtual net::URLRequestContextGetter* | 244 virtual net::URLRequestContextGetter* |
| 245 GetRequestContextForExtensions() OVERRIDE; | 245 GetRequestContextForExtensions() OVERRIDE; |
| 246 virtual net::URLRequestContextGetter* | 246 virtual net::URLRequestContextGetter* |
| 247 GetMediaRequestContextForStoragePartition( | 247 GetMediaRequestContextForStoragePartition( |
| 248 const std::string& partition_id) OVERRIDE; | 248 const FilePath& partition_path, |
| 249 bool in_memory) OVERRIDE; |
| 249 virtual net::URLRequestContextGetter* GetRequestContextForStoragePartition( | 250 virtual net::URLRequestContextGetter* GetRequestContextForStoragePartition( |
| 250 const std::string& partition_id) OVERRIDE; | 251 const FilePath& partition_path, |
| 252 bool in_memory) OVERRIDE; |
| 251 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; | 253 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; |
| 252 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; | 254 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; |
| 253 virtual std::wstring GetName(); | 255 virtual std::wstring GetName(); |
| 254 virtual void SetName(const std::wstring& name) {} | 256 virtual void SetName(const std::wstring& name) {} |
| 255 virtual std::wstring GetID(); | 257 virtual std::wstring GetID(); |
| 256 virtual void SetID(const std::wstring& id); | 258 virtual void SetID(const std::wstring& id); |
| 257 void set_last_session_exited_cleanly(bool value) { | 259 void set_last_session_exited_cleanly(bool value) { |
| 258 last_session_exited_cleanly_ = value; | 260 last_session_exited_cleanly_ = value; |
| 259 } | 261 } |
| 260 virtual void MergeResourceString(int message_id, | 262 virtual void MergeResourceString(int message_id, |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 // testing. | 365 // testing. |
| 364 ProfileDependencyManager* profile_dependency_manager_; | 366 ProfileDependencyManager* profile_dependency_manager_; |
| 365 | 367 |
| 366 scoped_ptr<content::MockResourceContext> resource_context_; | 368 scoped_ptr<content::MockResourceContext> resource_context_; |
| 367 | 369 |
| 368 // Weak pointer to a delegate for indicating that a profile was created. | 370 // Weak pointer to a delegate for indicating that a profile was created. |
| 369 Delegate* delegate_; | 371 Delegate* delegate_; |
| 370 }; | 372 }; |
| 371 | 373 |
| 372 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 374 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
| OLD | NEW |