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

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

Issue 10399087: Converting BookmarkModel and HistoryService to ProfileKeyedServices. This just performs the initial… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 15 matching lines...) Expand all
26 namespace net { 26 namespace net {
27 class CookieMonster; 27 class CookieMonster;
28 class URLRequestContextGetter; 28 class URLRequestContextGetter;
29 } 29 }
30 30
31 namespace quota { 31 namespace quota {
32 class SpecialStoragePolicy; 32 class SpecialStoragePolicy;
33 } 33 }
34 34
35 class AutocompleteClassifier; 35 class AutocompleteClassifier;
36 class BookmarkModel;
37 class CommandLine; 36 class CommandLine;
38 class ExtensionPrefs; 37 class ExtensionPrefs;
39 class ExtensionSpecialStoragePolicy; 38 class ExtensionSpecialStoragePolicy;
40 class FaviconService; 39 class FaviconService;
41 class HistoryService;
42 class HostContentSettingsMap; 40 class HostContentSettingsMap;
43 class PrefService; 41 class PrefService;
44 class ProfileDependencyManager; 42 class ProfileDependencyManager;
45 class ProfileSyncService; 43 class ProfileSyncService;
46 class TemplateURLService; 44 class TemplateURLService;
47 class TestingPrefService; 45 class TestingPrefService;
48 46
49 class TestingProfile : public Profile { 47 class TestingProfile : public Profile {
50 public: 48 public:
51 // Default constructor that cannot be used with multi-profiles. 49 // Default constructor that cannot be used with multi-profiles.
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 260
263 // Creates a TestingPrefService and associates it with the TestingProfile. 261 // Creates a TestingPrefService and associates it with the TestingProfile.
264 void CreateTestingPrefService(); 262 void CreateTestingPrefService();
265 263
266 virtual base::Callback<ChromeURLDataManagerBackend*(void)> 264 virtual base::Callback<ChromeURLDataManagerBackend*(void)>
267 GetChromeURLDataManagerBackendGetter() const OVERRIDE; 265 GetChromeURLDataManagerBackendGetter() const OVERRIDE;
268 266
269 // The favicon service. Only created if CreateFaviconService is invoked. 267 // The favicon service. Only created if CreateFaviconService is invoked.
270 scoped_ptr<FaviconService> favicon_service_; 268 scoped_ptr<FaviconService> favicon_service_;
271 269
272 // The history service. Only created if CreateHistoryService is invoked.
273 scoped_refptr<HistoryService> history_service_;
274
275 // The BookmarkModel. Only created if CreateBookmarkModel is invoked.
276 scoped_ptr<BookmarkModel> bookmark_bar_model_;
277
278 // The ProtocolHandlerRegistry. Only created if CreateProtocolHandlerRegistry 270 // The ProtocolHandlerRegistry. Only created if CreateProtocolHandlerRegistry
279 // is invoked. 271 // is invoked.
280 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry_; 272 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry_;
281 273
282 // The AutocompleteClassifier. Only created if CreateAutocompleteClassifier 274 // The AutocompleteClassifier. Only created if CreateAutocompleteClassifier
283 // is invoked. 275 // is invoked.
284 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; 276 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_;
285 277
286 // Internally, this is a TestURLRequestContextGetter that creates a dummy 278 // Internally, this is a TestURLRequestContextGetter that creates a dummy
287 // request context. Currently, only the CookieMonster is hooked up. 279 // request context. Currently, only the CookieMonster is hooked up.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 // testing. 317 // testing.
326 ProfileDependencyManager* profile_dependency_manager_; 318 ProfileDependencyManager* profile_dependency_manager_;
327 319
328 scoped_ptr<content::MockResourceContext> resource_context_; 320 scoped_ptr<content::MockResourceContext> resource_context_;
329 321
330 // Weak pointer to a delegate for indicating that a profile was created. 322 // Weak pointer to a delegate for indicating that a profile was created.
331 Delegate* delegate_; 323 Delegate* delegate_;
332 }; 324 };
333 325
334 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ 326 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698