Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Side by Side Diff: chrome/test/testing_profile.h

Issue 2862041: Remove abonded privacy blacklist implementation. (Closed)
Patch Set: fix unit tests Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/test/data/profiles/blacklist_prefs/Preferences ('k') | net/url_request/url_request_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698