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

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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 13 matching lines...) Expand all
32 class AutocompleteClassifier; 34 class AutocompleteClassifier;
33 class BookmarkModel; 35 class BookmarkModel;
34 class CommandLine; 36 class CommandLine;
35 class ExtensionSettings; 37 class ExtensionSettings;
36 class ExtensionPrefs; 38 class ExtensionPrefs;
37 class ExtensionPrefStore; 39 class ExtensionPrefStore;
38 class ExtensionPrefValueMap; 40 class ExtensionPrefValueMap;
39 class ExtensionSpecialStoragePolicy; 41 class ExtensionSpecialStoragePolicy;
40 class FaviconService; 42 class FaviconService;
41 class FindBarState; 43 class FindBarState;
42 class GeolocationContentSettingsMap;
43 class GeolocationPermissionContext; 44 class GeolocationPermissionContext;
44 class HistoryService; 45 class HistoryService;
45 class HostContentSettingsMap; 46 class HostContentSettingsMap;
46 class PrefService; 47 class PrefService;
47 class ProfileDependencyManager; 48 class ProfileDependencyManager;
48 class ProfileSyncService; 49 class ProfileSyncService;
49 class TemplateURLService; 50 class TemplateURLService;
50 class TestingPrefService; 51 class TestingPrefService;
51 class ThemeService; 52 class ThemeService;
52 class WebKitContext; 53 class WebKitContext;
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 virtual net::URLRequestContextGetter* GetRequestContextForExtensions(); 209 virtual net::URLRequestContextGetter* GetRequestContextForExtensions();
209 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( 210 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp(
210 const std::string& app_id); 211 const std::string& app_id);
211 212
212 virtual const content::ResourceContext& GetResourceContext(); 213 virtual const content::ResourceContext& GetResourceContext();
213 214
214 virtual net::SSLConfigService* GetSSLConfigService(); 215 virtual net::SSLConfigService* GetSSLConfigService();
215 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher(); 216 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher();
216 virtual FindBarState* GetFindBarState(); 217 virtual FindBarState* GetFindBarState();
217 virtual HostContentSettingsMap* GetHostContentSettingsMap(); 218 virtual HostContentSettingsMap* GetHostContentSettingsMap();
218 virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap();
219 virtual GeolocationPermissionContext* GetGeolocationPermissionContext(); 219 virtual GeolocationPermissionContext* GetGeolocationPermissionContext();
220 virtual HostZoomMap* GetHostZoomMap(); 220 virtual HostZoomMap* GetHostZoomMap();
221 virtual bool HasProfileSyncService() const; 221 virtual bool HasProfileSyncService() const;
222 virtual std::wstring GetName(); 222 virtual std::wstring GetName();
223 virtual void SetName(const std::wstring& name) {} 223 virtual void SetName(const std::wstring& name) {}
224 virtual std::wstring GetID(); 224 virtual std::wstring GetID();
225 virtual void SetID(const std::wstring& id); 225 virtual void SetID(const std::wstring& id);
226 void set_last_session_exited_cleanly(bool value) { 226 void set_last_session_exited_cleanly(bool value) {
227 last_session_exited_cleanly_ = value; 227 last_session_exited_cleanly_ = value;
228 } 228 }
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 scoped_refptr<fileapi::FileSystemContext> file_system_context_; 345 scoped_refptr<fileapi::FileSystemContext> file_system_context_;
346 346
347 // WebKitContext, lazily initialized by GetWebKitContext(). 347 // WebKitContext, lazily initialized by GetWebKitContext().
348 scoped_refptr<WebKitContext> webkit_context_; 348 scoped_refptr<WebKitContext> webkit_context_;
349 349
350 // The main database tracker for this profile. 350 // The main database tracker for this profile.
351 // Should be used only on the file thread. 351 // Should be used only on the file thread.
352 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; 352 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_;
353 353
354 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 354 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
355 scoped_refptr<GeolocationContentSettingsMap>
356 geolocation_content_settings_map_;
357 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_; 355 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_;
358 356
359 // Find bar state. Created lazily by GetFindBarState(). 357 // Find bar state. Created lazily by GetFindBarState().
360 scoped_ptr<FindBarState> find_bar_state_; 358 scoped_ptr<FindBarState> find_bar_state_;
361 359
362 FilePath last_selected_directory_; 360 FilePath last_selected_directory_;
363 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. 361 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails.
364 362
365 // The Extension Preferences. Only created if CreateExtensionService is 363 // The Extension Preferences. Only created if CreateExtensionService is
366 // invoked. 364 // invoked.
(...skipping 25 matching lines...) Expand all
392 // testing. 390 // testing.
393 ProfileDependencyManager* profile_dependency_manager_; 391 ProfileDependencyManager* profile_dependency_manager_;
394 392
395 scoped_refptr<ChromeAppCacheService> appcache_service_; 393 scoped_refptr<ChromeAppCacheService> appcache_service_;
396 394
397 // The QuotaManager, only available if set explicitly via SetQuotaManager. 395 // The QuotaManager, only available if set explicitly via SetQuotaManager.
398 scoped_refptr<quota::QuotaManager> quota_manager_; 396 scoped_refptr<quota::QuotaManager> quota_manager_;
399 }; 397 };
400 398
401 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ 399 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698