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