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

Side by Side Diff: chrome/browser/profile.h

Issue 267019: Add the ability to unload the HistoryBackend.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « chrome/browser/history/history.cc ('k') | chrome/browser/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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 // This class gathers state related to a single user profile. 5 // This class gathers state related to a single user profile.
6 6
7 #ifndef CHROME_BROWSER_PROFILE_H_ 7 #ifndef CHROME_BROWSER_PROFILE_H_
8 #define CHROME_BROWSER_PROFILE_H_ 8 #define CHROME_BROWSER_PROFILE_H_
9 9
10 #include <set> 10 #include <set>
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // 184 //
185 // Although HistoryService is refcounted, this will not addref, and callers 185 // Although HistoryService is refcounted, this will not addref, and callers
186 // do not need to do any reference counting as long as they keep the pointer 186 // do not need to do any reference counting as long as they keep the pointer
187 // only for the local scope (which they should do anyway since the browser 187 // only for the local scope (which they should do anyway since the browser
188 // process may decide to shut down). 188 // process may decide to shut down).
189 // 189 //
190 // |access| defines what the caller plans to do with the service. See 190 // |access| defines what the caller plans to do with the service. See
191 // the ServiceAccessType definition above. 191 // the ServiceAccessType definition above.
192 virtual HistoryService* GetHistoryService(ServiceAccessType access) = 0; 192 virtual HistoryService* GetHistoryService(ServiceAccessType access) = 0;
193 193
194 // Similar to GetHistoryService(), but won't create the history service if it
195 // doesn't already exist.
196 virtual HistoryService* GetHistoryServiceWithoutCreating() = 0;
197
194 // Returns the WebDataService for this profile. This is owned by 198 // Returns the WebDataService for this profile. This is owned by
195 // the Profile. Callers that outlive the life of this profile need to be 199 // the Profile. Callers that outlive the life of this profile need to be
196 // sure they refcount the returned value. 200 // sure they refcount the returned value.
197 // 201 //
198 // |access| defines what the caller plans to do with the service. See 202 // |access| defines what the caller plans to do with the service. See
199 // the ServiceAccessType definition above. 203 // the ServiceAccessType definition above.
200 virtual WebDataService* GetWebDataService(ServiceAccessType access) = 0; 204 virtual WebDataService* GetWebDataService(ServiceAccessType access) = 0;
201 205
202 // Returns the PasswordStore for this profile. This is owned by the Profile. 206 // Returns the PasswordStore for this profile. This is owned by the Profile.
203 virtual PasswordStore* GetPasswordStore(ServiceAccessType access) = 0; 207 virtual PasswordStore* GetPasswordStore(ServiceAccessType access) = 0;
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 virtual VisitedLinkMaster* GetVisitedLinkMaster(); 384 virtual VisitedLinkMaster* GetVisitedLinkMaster();
381 virtual UserScriptMaster* GetUserScriptMaster(); 385 virtual UserScriptMaster* GetUserScriptMaster();
382 virtual SSLHostState* GetSSLHostState(); 386 virtual SSLHostState* GetSSLHostState();
383 virtual net::StrictTransportSecurityState* GetStrictTransportSecurityState(); 387 virtual net::StrictTransportSecurityState* GetStrictTransportSecurityState();
384 virtual ExtensionsService* GetExtensionsService(); 388 virtual ExtensionsService* GetExtensionsService();
385 virtual ExtensionDevToolsManager* GetExtensionDevToolsManager(); 389 virtual ExtensionDevToolsManager* GetExtensionDevToolsManager();
386 virtual ExtensionProcessManager* GetExtensionProcessManager(); 390 virtual ExtensionProcessManager* GetExtensionProcessManager();
387 virtual ExtensionMessageService* GetExtensionMessageService(); 391 virtual ExtensionMessageService* GetExtensionMessageService();
388 virtual FaviconService* GetFaviconService(ServiceAccessType sat); 392 virtual FaviconService* GetFaviconService(ServiceAccessType sat);
389 virtual HistoryService* GetHistoryService(ServiceAccessType sat); 393 virtual HistoryService* GetHistoryService(ServiceAccessType sat);
394 virtual HistoryService* GetHistoryServiceWithoutCreating();
390 virtual WebDataService* GetWebDataService(ServiceAccessType sat); 395 virtual WebDataService* GetWebDataService(ServiceAccessType sat);
391 virtual PasswordStore* GetPasswordStore(ServiceAccessType sat); 396 virtual PasswordStore* GetPasswordStore(ServiceAccessType sat);
392 virtual PrefService* GetPrefs(); 397 virtual PrefService* GetPrefs();
393 virtual TemplateURLModel* GetTemplateURLModel(); 398 virtual TemplateURLModel* GetTemplateURLModel();
394 virtual TemplateURLFetcher* GetTemplateURLFetcher(); 399 virtual TemplateURLFetcher* GetTemplateURLFetcher();
395 virtual DownloadManager* GetDownloadManager(); 400 virtual DownloadManager* GetDownloadManager();
396 virtual void InitThemes(); 401 virtual void InitThemes();
397 virtual void SetTheme(Extension* extension); 402 virtual void SetTheme(Extension* extension);
398 virtual void SetNativeTheme(); 403 virtual void SetNativeTheme();
399 virtual void ClearTheme(); 404 virtual void ClearTheme();
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 #endif 556 #endif
552 557
553 // This struct is used to pass the spellchecker object through the notification 558 // This struct is used to pass the spellchecker object through the notification
554 // SPELLCHECKER_REINITIALIZED. This is used as the details for the notification 559 // SPELLCHECKER_REINITIALIZED. This is used as the details for the notification
555 // service. 560 // service.
556 struct SpellcheckerReinitializedDetails { 561 struct SpellcheckerReinitializedDetails {
557 scoped_refptr<SpellChecker> spellchecker; 562 scoped_refptr<SpellChecker> spellchecker;
558 }; 563 };
559 564
560 #endif // CHROME_BROWSER_PROFILE_H_ 565 #endif // CHROME_BROWSER_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/history.cc ('k') | chrome/browser/profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698