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

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

Issue 340067: database_dispatcher_host changes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Addressed Michael's latest comments. Created 11 years, 1 month 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/automation/automation_profile_impl.h ('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 11 matching lines...) Expand all
22 22
23 #if defined(OS_CHROMEOS) 23 #if defined(OS_CHROMEOS)
24 #include "chrome/browser/chromeos/preferences.h" 24 #include "chrome/browser/chromeos/preferences.h"
25 #endif 25 #endif
26 26
27 namespace net { 27 namespace net {
28 class StrictTransportSecurityState; 28 class StrictTransportSecurityState;
29 class SSLConfigService; 29 class SSLConfigService;
30 } 30 }
31 31
32 namespace webkit_database {
33 class DatabaseTracker;
34 }
35
32 class Blacklist; 36 class Blacklist;
33 class BookmarkModel; 37 class BookmarkModel;
34 class BrowserThemeProvider; 38 class BrowserThemeProvider;
35 class ChromeURLRequestContextGetter; 39 class ChromeURLRequestContextGetter;
36 class DesktopNotificationService; 40 class DesktopNotificationService;
37 class DownloadManager; 41 class DownloadManager;
38 class Extension; 42 class Extension;
39 class ExtensionDevToolsManager; 43 class ExtensionDevToolsManager;
40 class ExtensionProcessManager; 44 class ExtensionProcessManager;
41 class ExtensionMessageService; 45 class ExtensionMessageService;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // record, the same profile is returned. 136 // record, the same profile is returned.
133 virtual Profile* GetOffTheRecordProfile() = 0; 137 virtual Profile* GetOffTheRecordProfile() = 0;
134 138
135 // Destroys the off the record profile. 139 // Destroys the off the record profile.
136 virtual void DestroyOffTheRecordProfile() = 0; 140 virtual void DestroyOffTheRecordProfile() = 0;
137 141
138 // Return the original "recording" profile. This method returns this if the 142 // Return the original "recording" profile. This method returns this if the
139 // profile is not off the record. 143 // profile is not off the record.
140 virtual Profile* GetOriginalProfile() = 0; 144 virtual Profile* GetOriginalProfile() = 0;
141 145
146 // Returns a pointer to the DatabaseTracker instance for this profile.
147 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0;
148
142 // Retrieves a pointer to the VisitedLinkMaster associated with this 149 // Retrieves a pointer to the VisitedLinkMaster associated with this
143 // profile. The VisitedLinkMaster is lazily created the first time 150 // profile. The VisitedLinkMaster is lazily created the first time
144 // that this method is called. 151 // that this method is called.
145 virtual VisitedLinkMaster* GetVisitedLinkMaster() = 0; 152 virtual VisitedLinkMaster* GetVisitedLinkMaster() = 0;
146 153
147 // Retrieves a pointer to the ExtensionsService associated with this 154 // Retrieves a pointer to the ExtensionsService associated with this
148 // profile. The ExtensionsService is created at startup. 155 // profile. The ExtensionsService is created at startup.
149 virtual ExtensionsService* GetExtensionsService() = 0; 156 virtual ExtensionsService* GetExtensionsService() = 0;
150 157
151 // Retrieves a pointer to the UserScriptMaster associated with this 158 // Retrieves a pointer to the UserScriptMaster associated with this
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 public: 421 public:
415 virtual ~ProfileImpl(); 422 virtual ~ProfileImpl();
416 423
417 // Profile implementation. 424 // Profile implementation.
418 virtual ProfileId GetRuntimeId(); 425 virtual ProfileId GetRuntimeId();
419 virtual FilePath GetPath(); 426 virtual FilePath GetPath();
420 virtual bool IsOffTheRecord(); 427 virtual bool IsOffTheRecord();
421 virtual Profile* GetOffTheRecordProfile(); 428 virtual Profile* GetOffTheRecordProfile();
422 virtual void DestroyOffTheRecordProfile(); 429 virtual void DestroyOffTheRecordProfile();
423 virtual Profile* GetOriginalProfile(); 430 virtual Profile* GetOriginalProfile();
431 virtual webkit_database::DatabaseTracker* GetDatabaseTracker();
424 virtual VisitedLinkMaster* GetVisitedLinkMaster(); 432 virtual VisitedLinkMaster* GetVisitedLinkMaster();
425 virtual UserScriptMaster* GetUserScriptMaster(); 433 virtual UserScriptMaster* GetUserScriptMaster();
426 virtual SSLHostState* GetSSLHostState(); 434 virtual SSLHostState* GetSSLHostState();
427 virtual net::StrictTransportSecurityState* GetStrictTransportSecurityState(); 435 virtual net::StrictTransportSecurityState* GetStrictTransportSecurityState();
428 virtual ExtensionsService* GetExtensionsService(); 436 virtual ExtensionsService* GetExtensionsService();
429 virtual ExtensionDevToolsManager* GetExtensionDevToolsManager(); 437 virtual ExtensionDevToolsManager* GetExtensionDevToolsManager();
430 virtual ExtensionProcessManager* GetExtensionProcessManager(); 438 virtual ExtensionProcessManager* GetExtensionProcessManager();
431 virtual ExtensionMessageService* GetExtensionMessageService(); 439 virtual ExtensionMessageService* GetExtensionMessageService();
432 virtual FaviconService* GetFaviconService(ServiceAccessType sat); 440 virtual FaviconService* GetFaviconService(ServiceAccessType sat);
433 virtual HistoryService* GetHistoryService(ServiceAccessType sat); 441 virtual HistoryService* GetHistoryService(ServiceAccessType sat);
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 596
589 // Indicates whether |spellcheck_host_| has told us initialization is 597 // Indicates whether |spellcheck_host_| has told us initialization is
590 // finished. 598 // finished.
591 bool spellcheck_host_ready_; 599 bool spellcheck_host_ready_;
592 #endif 600 #endif
593 601
594 // Set to true when ShutdownSessionService is invoked. If true 602 // Set to true when ShutdownSessionService is invoked. If true
595 // GetSessionService won't recreate the SessionService. 603 // GetSessionService won't recreate the SessionService.
596 bool shutdown_session_service_; 604 bool shutdown_session_service_;
597 605
606 // The main database tracker for this profile.
607 // Should be used only on the file thread.
608 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_;
609
598 #if defined(OS_CHROMEOS) 610 #if defined(OS_CHROMEOS)
599 chromeos::Preferences chromeos_preferences_; 611 chromeos::Preferences chromeos_preferences_;
600 #endif 612 #endif
601 613
602 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 614 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
603 }; 615 };
604 616
605 // This struct is used to pass the spellchecker object through the notification 617 // This struct is used to pass the spellchecker object through the notification
606 // SPELLCHECKER_REINITIALIZED. This is used as the details for the notification 618 // SPELLCHECKER_REINITIALIZED. This is used as the details for the notification
607 // service. 619 // service.
608 struct SpellcheckerReinitializedDetails { 620 struct SpellcheckerReinitializedDetails {
609 scoped_refptr<SpellChecker> spellchecker; 621 scoped_refptr<SpellChecker> spellchecker;
610 }; 622 };
611 623
612 #endif // CHROME_BROWSER_PROFILE_H_ 624 #endif // CHROME_BROWSER_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_profile_impl.h ('k') | chrome/browser/profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698