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

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, 6 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_browser.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) 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 14 matching lines...) Expand all
25 namespace net { 25 namespace net {
26 class CookieMonster; 26 class CookieMonster;
27 class URLRequestContextGetter; 27 class URLRequestContextGetter;
28 } 28 }
29 29
30 namespace quota { 30 namespace quota {
31 class SpecialStoragePolicy; 31 class SpecialStoragePolicy;
32 } 32 }
33 33
34 class AutocompleteClassifier; 34 class AutocompleteClassifier;
35 class BookmarkModel;
36 class CommandLine; 35 class CommandLine;
37 class ExtensionPrefs; 36 class ExtensionPrefs;
38 class ExtensionSpecialStoragePolicy; 37 class ExtensionSpecialStoragePolicy;
39 class FaviconService; 38 class FaviconService;
40 class HistoryService;
41 class HostContentSettingsMap; 39 class HostContentSettingsMap;
42 class PrefService; 40 class PrefService;
43 class ProfileDependencyManager; 41 class ProfileDependencyManager;
44 class ProfileSyncService; 42 class ProfileSyncService;
45 class TemplateURLService; 43 class TemplateURLService;
46 class TestingPrefService; 44 class TestingPrefService;
47 45
48 class TestingProfile : public Profile { 46 class TestingProfile : public Profile {
49 public: 47 public:
50 // Default constructor that cannot be used with multi-profiles. 48 // Default constructor that cannot be used with multi-profiles.
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 261
264 // Creates a TestingPrefService and associates it with the TestingProfile. 262 // Creates a TestingPrefService and associates it with the TestingProfile.
265 void CreateTestingPrefService(); 263 void CreateTestingPrefService();
266 264
267 virtual base::Callback<ChromeURLDataManagerBackend*(void)> 265 virtual base::Callback<ChromeURLDataManagerBackend*(void)>
268 GetChromeURLDataManagerBackendGetter() const OVERRIDE; 266 GetChromeURLDataManagerBackendGetter() const OVERRIDE;
269 267
270 // The favicon service. Only created if CreateFaviconService is invoked. 268 // The favicon service. Only created if CreateFaviconService is invoked.
271 scoped_ptr<FaviconService> favicon_service_; 269 scoped_ptr<FaviconService> favicon_service_;
272 270
273 // The history service. Only created if CreateHistoryService is invoked.
274 scoped_refptr<HistoryService> history_service_;
275
276 // The BookmarkModel. Only created if CreateBookmarkModel is invoked.
277 scoped_ptr<BookmarkModel> bookmark_bar_model_;
278
279 // The ProtocolHandlerRegistry. Only created if CreateProtocolHandlerRegistry 271 // The ProtocolHandlerRegistry. Only created if CreateProtocolHandlerRegistry
280 // is invoked. 272 // is invoked.
281 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry_; 273 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry_;
282 274
283 // The AutocompleteClassifier. Only created if CreateAutocompleteClassifier 275 // The AutocompleteClassifier. Only created if CreateAutocompleteClassifier
284 // is invoked. 276 // is invoked.
285 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; 277 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_;
286 278
287 // The policy service. Lazily created as a stub. 279 // The policy service. Lazily created as a stub.
288 scoped_ptr<policy::PolicyService> policy_service_; 280 scoped_ptr<policy::PolicyService> policy_service_;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 // testing. 318 // testing.
327 ProfileDependencyManager* profile_dependency_manager_; 319 ProfileDependencyManager* profile_dependency_manager_;
328 320
329 scoped_ptr<content::MockResourceContext> resource_context_; 321 scoped_ptr<content::MockResourceContext> resource_context_;
330 322
331 // Weak pointer to a delegate for indicating that a profile was created. 323 // Weak pointer to a delegate for indicating that a profile was created.
332 Delegate* delegate_; 324 Delegate* delegate_;
333 }; 325 };
334 326
335 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ 327 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698