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

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

Issue 7484072: Migrate geolocation settings to host content settings map. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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>
10
9 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
11 #include "base/scoped_temp_dir.h" 13 #include "base/scoped_temp_dir.h"
12 #include "base/timer.h" 14 #include "base/timer.h"
13 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
14 #include "content/browser/appcache/chrome_appcache_service.h" 16 #include "content/browser/appcache/chrome_appcache_service.h"
15 17
16 namespace content { 18 namespace content {
17 class ResourceContextGetter; 19 class ResourceContextGetter;
18 } 20 }
(...skipping 12 matching lines...) Expand all
31 33
32 class AutocompleteClassifier; 34 class AutocompleteClassifier;
33 class BookmarkModel; 35 class BookmarkModel;
34 class CommandLine; 36 class CommandLine;
35 class ExtensionPrefs; 37 class ExtensionPrefs;
36 class ExtensionPrefStore; 38 class ExtensionPrefStore;
37 class ExtensionPrefValueMap; 39 class ExtensionPrefValueMap;
38 class ExtensionSpecialStoragePolicy; 40 class ExtensionSpecialStoragePolicy;
39 class FaviconService; 41 class FaviconService;
40 class FindBarState; 42 class FindBarState;
41 class GeolocationContentSettingsMap;
42 class GeolocationPermissionContext; 43 class GeolocationPermissionContext;
43 class HistoryService; 44 class HistoryService;
44 class HostContentSettingsMap; 45 class HostContentSettingsMap;
45 class PrefService; 46 class PrefService;
46 class ProfileDependencyManager; 47 class ProfileDependencyManager;
47 class ProfileSyncService; 48 class ProfileSyncService;
48 class TemplateURLService; 49 class TemplateURLService;
49 class TestingPrefService; 50 class TestingPrefService;
50 class ThemeService; 51 class ThemeService;
51 class WebKitContext; 52 class WebKitContext;
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 virtual net::URLRequestContextGetter* GetRequestContextForExtensions(); 208 virtual net::URLRequestContextGetter* GetRequestContextForExtensions();
208 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( 209 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp(
209 const std::string& app_id); 210 const std::string& app_id);
210 211
211 virtual const content::ResourceContext& GetResourceContext(); 212 virtual const content::ResourceContext& GetResourceContext();
212 213
213 virtual net::SSLConfigService* GetSSLConfigService(); 214 virtual net::SSLConfigService* GetSSLConfigService();
214 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher(); 215 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher();
215 virtual FindBarState* GetFindBarState(); 216 virtual FindBarState* GetFindBarState();
216 virtual HostContentSettingsMap* GetHostContentSettingsMap(); 217 virtual HostContentSettingsMap* GetHostContentSettingsMap();
217 virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap();
218 virtual GeolocationPermissionContext* GetGeolocationPermissionContext(); 218 virtual GeolocationPermissionContext* GetGeolocationPermissionContext();
219 virtual HostZoomMap* GetHostZoomMap(); 219 virtual HostZoomMap* GetHostZoomMap();
220 virtual bool HasProfileSyncService() const; 220 virtual bool HasProfileSyncService() const;
221 virtual std::wstring GetName(); 221 virtual std::wstring GetName();
222 virtual void SetName(const std::wstring& name) {} 222 virtual void SetName(const std::wstring& name) {}
223 virtual std::wstring GetID(); 223 virtual std::wstring GetID();
224 virtual void SetID(const std::wstring& id); 224 virtual void SetID(const std::wstring& id);
225 void set_last_session_exited_cleanly(bool value) { 225 void set_last_session_exited_cleanly(bool value) {
226 last_session_exited_cleanly_ = value; 226 last_session_exited_cleanly_ = value;
227 } 227 }
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 scoped_refptr<fileapi::FileSystemContext> file_system_context_; 346 scoped_refptr<fileapi::FileSystemContext> file_system_context_;
347 347
348 // WebKitContext, lazily initialized by GetWebKitContext(). 348 // WebKitContext, lazily initialized by GetWebKitContext().
349 scoped_refptr<WebKitContext> webkit_context_; 349 scoped_refptr<WebKitContext> webkit_context_;
350 350
351 // The main database tracker for this profile. 351 // The main database tracker for this profile.
352 // Should be used only on the file thread. 352 // Should be used only on the file thread.
353 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; 353 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_;
354 354
355 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 355 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
356 scoped_refptr<GeolocationContentSettingsMap>
357 geolocation_content_settings_map_;
358 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_; 356 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_;
359 357
360 // Find bar state. Created lazily by GetFindBarState(). 358 // Find bar state. Created lazily by GetFindBarState().
361 scoped_ptr<FindBarState> find_bar_state_; 359 scoped_ptr<FindBarState> find_bar_state_;
362 360
363 FilePath last_selected_directory_; 361 FilePath last_selected_directory_;
364 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. 362 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails.
365 363
366 // The Extension Preferences. Only created if CreateExtensionService is 364 // The Extension Preferences. Only created if CreateExtensionService is
367 // invoked. 365 // invoked.
(...skipping 22 matching lines...) Expand all
390 // testing. 388 // testing.
391 ProfileDependencyManager* profile_dependency_manager_; 389 ProfileDependencyManager* profile_dependency_manager_;
392 390
393 scoped_refptr<ChromeAppCacheService> appcache_service_; 391 scoped_refptr<ChromeAppCacheService> appcache_service_;
394 392
395 // The QuotaManager, only available if set explicitly via SetQuotaManager. 393 // The QuotaManager, only available if set explicitly via SetQuotaManager.
396 scoped_refptr<quota::QuotaManager> quota_manager_; 394 scoped_refptr<quota::QuotaManager> quota_manager_;
397 }; 395 };
398 396
399 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ 397 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698