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

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

Issue 7713034: HostContentSettingsMap refactoring. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 virtual net::URLRequestContextGetter* GetRequestContextForExtensions(); 209 virtual net::URLRequestContextGetter* GetRequestContextForExtensions();
210 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( 210 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp(
211 const std::string& app_id); 211 const std::string& app_id);
212 212
213 virtual const content::ResourceContext& GetResourceContext(); 213 virtual const content::ResourceContext& GetResourceContext();
214 214
215 virtual net::SSLConfigService* GetSSLConfigService(); 215 virtual net::SSLConfigService* GetSSLConfigService();
216 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher(); 216 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher();
217 virtual FindBarState* GetFindBarState(); 217 virtual FindBarState* GetFindBarState();
218 virtual HostContentSettingsMap* GetHostContentSettingsMap(); 218 virtual HostContentSettingsMap* GetHostContentSettingsMap();
219 virtual CookieContentSettings* GetCookieContentSettings();
219 virtual GeolocationPermissionContext* GetGeolocationPermissionContext(); 220 virtual GeolocationPermissionContext* GetGeolocationPermissionContext();
220 virtual HostZoomMap* GetHostZoomMap(); 221 virtual HostZoomMap* GetHostZoomMap();
221 virtual bool HasProfileSyncService() const; 222 virtual bool HasProfileSyncService() const;
222 virtual std::wstring GetName(); 223 virtual std::wstring GetName();
223 virtual void SetName(const std::wstring& name) {} 224 virtual void SetName(const std::wstring& name) {}
224 virtual std::wstring GetID(); 225 virtual std::wstring GetID();
225 virtual void SetID(const std::wstring& id); 226 virtual void SetID(const std::wstring& id);
226 void set_last_session_exited_cleanly(bool value) { 227 void set_last_session_exited_cleanly(bool value) {
227 last_session_exited_cleanly_ = value; 228 last_session_exited_cleanly_ = value;
228 } 229 }
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 scoped_refptr<fileapi::FileSystemContext> file_system_context_; 346 scoped_refptr<fileapi::FileSystemContext> file_system_context_;
346 347
347 // WebKitContext, lazily initialized by GetWebKitContext(). 348 // WebKitContext, lazily initialized by GetWebKitContext().
348 scoped_refptr<WebKitContext> webkit_context_; 349 scoped_refptr<WebKitContext> webkit_context_;
349 350
350 // The main database tracker for this profile. 351 // The main database tracker for this profile.
351 // Should be used only on the file thread. 352 // Should be used only on the file thread.
352 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; 353 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_;
353 354
354 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 355 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
356 scoped_refptr<CookieContentSettings> cookie_content_settings_;
355 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_; 357 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_;
356 358
357 // Find bar state. Created lazily by GetFindBarState(). 359 // Find bar state. Created lazily by GetFindBarState().
358 scoped_ptr<FindBarState> find_bar_state_; 360 scoped_ptr<FindBarState> find_bar_state_;
359 361
360 FilePath last_selected_directory_; 362 FilePath last_selected_directory_;
361 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. 363 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails.
362 364
363 // The Extension Preferences. Only created if CreateExtensionService is 365 // The Extension Preferences. Only created if CreateExtensionService is
364 // invoked. 366 // invoked.
(...skipping 25 matching lines...) Expand all
390 // testing. 392 // testing.
391 ProfileDependencyManager* profile_dependency_manager_; 393 ProfileDependencyManager* profile_dependency_manager_;
392 394
393 scoped_refptr<ChromeAppCacheService> appcache_service_; 395 scoped_refptr<ChromeAppCacheService> appcache_service_;
394 396
395 // The QuotaManager, only available if set explicitly via SetQuotaManager. 397 // The QuotaManager, only available if set explicitly via SetQuotaManager.
396 scoped_refptr<quota::QuotaManager> quota_manager_; 398 scoped_refptr<quota::QuotaManager> quota_manager_;
397 }; 399 };
398 400
399 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ 401 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698