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

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

Issue 7989001: Remove use of default request context and fix use of speech censor flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update SpeechInputPreferences when preference changes Created 9 years, 2 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 28 matching lines...) Expand all
39 class ExtensionPrefValueMap; 39 class ExtensionPrefValueMap;
40 class ExtensionSpecialStoragePolicy; 40 class ExtensionSpecialStoragePolicy;
41 class FaviconService; 41 class FaviconService;
42 class FindBarState; 42 class FindBarState;
43 class GeolocationPermissionContext; 43 class GeolocationPermissionContext;
44 class HistoryService; 44 class HistoryService;
45 class HostContentSettingsMap; 45 class HostContentSettingsMap;
46 class PrefService; 46 class PrefService;
47 class ProfileDependencyManager; 47 class ProfileDependencyManager;
48 class ProfileSyncService; 48 class ProfileSyncService;
49 class SpeechInputPreferences;
49 class TemplateURLService; 50 class TemplateURLService;
50 class TestingPrefService; 51 class TestingPrefService;
51 class ThemeService; 52 class ThemeService;
52 class WebKitContext; 53 class WebKitContext;
53 54
54 namespace net { 55 namespace net {
55 class URLRequestContextGetter; 56 class URLRequestContextGetter;
56 } 57 }
57 58
58 class TestingProfile : public Profile { 59 class TestingProfile : public Profile {
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( 215 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp(
215 const std::string& app_id); 216 const std::string& app_id);
216 217
217 virtual const content::ResourceContext& GetResourceContext(); 218 virtual const content::ResourceContext& GetResourceContext();
218 219
219 virtual net::SSLConfigService* GetSSLConfigService(); 220 virtual net::SSLConfigService* GetSSLConfigService();
220 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher(); 221 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher();
221 virtual FindBarState* GetFindBarState(); 222 virtual FindBarState* GetFindBarState();
222 virtual HostContentSettingsMap* GetHostContentSettingsMap(); 223 virtual HostContentSettingsMap* GetHostContentSettingsMap();
223 virtual GeolocationPermissionContext* GetGeolocationPermissionContext(); 224 virtual GeolocationPermissionContext* GetGeolocationPermissionContext();
225 virtual SpeechInputPreferences* GetSpeechInputPreferences();
224 virtual HostZoomMap* GetHostZoomMap(); 226 virtual HostZoomMap* GetHostZoomMap();
225 virtual bool HasProfileSyncService() const; 227 virtual bool HasProfileSyncService() const;
226 virtual std::wstring GetName(); 228 virtual std::wstring GetName();
227 virtual void SetName(const std::wstring& name) {} 229 virtual void SetName(const std::wstring& name) {}
228 virtual std::wstring GetID(); 230 virtual std::wstring GetID();
229 virtual void SetID(const std::wstring& id); 231 virtual void SetID(const std::wstring& id);
230 void set_last_session_exited_cleanly(bool value) { 232 void set_last_session_exited_cleanly(bool value) {
231 last_session_exited_cleanly_ = value; 233 last_session_exited_cleanly_ = value;
232 } 234 }
233 virtual bool DidLastSessionExitCleanly(); 235 virtual bool DidLastSessionExitCleanly();
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 // WebKitContext, lazily initialized by GetWebKitContext(). 361 // WebKitContext, lazily initialized by GetWebKitContext().
360 scoped_refptr<WebKitContext> webkit_context_; 362 scoped_refptr<WebKitContext> webkit_context_;
361 363
362 // The main database tracker for this profile. 364 // The main database tracker for this profile.
363 // Should be used only on the file thread. 365 // Should be used only on the file thread.
364 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; 366 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_;
365 367
366 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 368 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
367 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_; 369 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_;
368 370
371 scoped_refptr<SpeechInputPreferences> speech_input_preferences_;
372
369 // Find bar state. Created lazily by GetFindBarState(). 373 // Find bar state. Created lazily by GetFindBarState().
370 scoped_ptr<FindBarState> find_bar_state_; 374 scoped_ptr<FindBarState> find_bar_state_;
371 375
372 FilePath last_selected_directory_; 376 FilePath last_selected_directory_;
373 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. 377 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails.
374 378
375 // The Extension Preferences. Only created if CreateExtensionService is 379 // The Extension Preferences. Only created if CreateExtensionService is
376 // invoked. 380 // invoked.
377 scoped_ptr<ExtensionPrefs> extension_prefs_; 381 scoped_ptr<ExtensionPrefs> extension_prefs_;
378 382
(...skipping 24 matching lines...) Expand all
403 // testing. 407 // testing.
404 ProfileDependencyManager* profile_dependency_manager_; 408 ProfileDependencyManager* profile_dependency_manager_;
405 409
406 scoped_refptr<ChromeAppCacheService> appcache_service_; 410 scoped_refptr<ChromeAppCacheService> appcache_service_;
407 411
408 // The QuotaManager, only available if set explicitly via SetQuotaManager. 412 // The QuotaManager, only available if set explicitly via SetQuotaManager.
409 scoped_refptr<quota::QuotaManager> quota_manager_; 413 scoped_refptr<quota::QuotaManager> quota_manager_;
410 }; 414 };
411 415
412 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ 416 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698