OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TESTING_PROFILE_H_ | 5 #ifndef CHROME_TEST_TESTING_PROFILE_H_ |
6 #define CHROME_TEST_TESTING_PROFILE_H_ | 6 #define CHROME_TEST_TESTING_PROFILE_H_ |
7 | 7 |
8 #include "base/base_paths.h" | 8 #include "base/base_paths.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 // leaking if they called this method without the necessary IO thread. This | 191 // leaking if they called this method without the necessary IO thread. This |
192 // getter is currently only capable of returning a Context that helps test | 192 // getter is currently only capable of returning a Context that helps test |
193 // the CookieMonster. See implementation comments for more details. | 193 // the CookieMonster. See implementation comments for more details. |
194 virtual URLRequestContextGetter* GetRequestContext(); | 194 virtual URLRequestContextGetter* GetRequestContext(); |
195 void CreateRequestContext(); | 195 void CreateRequestContext(); |
196 | 196 |
197 virtual URLRequestContextGetter* GetRequestContextForMedia() { return NULL; } | 197 virtual URLRequestContextGetter* GetRequestContextForMedia() { return NULL; } |
198 virtual URLRequestContextGetter* GetRequestContextForExtensions(); | 198 virtual URLRequestContextGetter* GetRequestContextForExtensions(); |
199 | 199 |
200 virtual net::SSLConfigService* GetSSLConfigService() { return NULL; } | 200 virtual net::SSLConfigService* GetSSLConfigService() { return NULL; } |
201 virtual Blacklist* GetPrivacyBlacklist() { return NULL; } | |
202 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher() { return NULL; } | 201 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher() { return NULL; } |
203 virtual FindBarState* GetFindBarState() { | 202 virtual FindBarState* GetFindBarState() { |
204 if (!find_bar_state_.get()) | 203 if (!find_bar_state_.get()) |
205 find_bar_state_.reset(new FindBarState()); | 204 find_bar_state_.reset(new FindBarState()); |
206 return find_bar_state_.get(); | 205 return find_bar_state_.get(); |
207 } | 206 } |
208 virtual HostContentSettingsMap* GetHostContentSettingsMap() { | 207 virtual HostContentSettingsMap* GetHostContentSettingsMap() { |
209 if (!host_content_settings_map_.get()) | 208 if (!host_content_settings_map_.get()) |
210 host_content_settings_map_ = new HostContentSettingsMap(this); | 209 host_content_settings_map_ = new HostContentSettingsMap(this); |
211 return host_content_settings_map_.get(); | 210 return host_content_settings_map_.get(); |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 | 380 |
382 virtual ProfileId GetRuntimeId() { | 381 virtual ProfileId GetRuntimeId() { |
383 return original_profile_->GetRuntimeId(); | 382 return original_profile_->GetRuntimeId(); |
384 } | 383 } |
385 | 384 |
386 protected: | 385 protected: |
387 Profile* original_profile_; | 386 Profile* original_profile_; |
388 }; | 387 }; |
389 | 388 |
390 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 389 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
OLD | NEW |