| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 virtual bool IsOffTheRecord() = 0; | 143 virtual bool IsOffTheRecord() = 0; |
| 144 | 144 |
| 145 // Return the off the record version of this profile. The returned pointer | 145 // Return the off the record version of this profile. The returned pointer |
| 146 // is owned by the receiving profile. If the receiving profile is off the | 146 // is owned by the receiving profile. If the receiving profile is off the |
| 147 // record, the same profile is returned. | 147 // record, the same profile is returned. |
| 148 virtual Profile* GetOffTheRecordProfile() = 0; | 148 virtual Profile* GetOffTheRecordProfile() = 0; |
| 149 | 149 |
| 150 // Destroys the off the record profile. | 150 // Destroys the off the record profile. |
| 151 virtual void DestroyOffTheRecordProfile() = 0; | 151 virtual void DestroyOffTheRecordProfile() = 0; |
| 152 | 152 |
| 153 // True if an off the record profile exists. |
| 154 virtual bool HasOffTheRecordProfile() = 0; |
| 155 |
| 153 // Return the original "recording" profile. This method returns this if the | 156 // Return the original "recording" profile. This method returns this if the |
| 154 // profile is not off the record. | 157 // profile is not off the record. |
| 155 virtual Profile* GetOriginalProfile() = 0; | 158 virtual Profile* GetOriginalProfile() = 0; |
| 156 | 159 |
| 157 // Returns a pointer to the DatabaseTracker instance for this profile. | 160 // Returns a pointer to the DatabaseTracker instance for this profile. |
| 158 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; | 161 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; |
| 159 | 162 |
| 160 // Returns a pointer to the TopSites (thumbnail manager) instance | 163 // Returns a pointer to the TopSites (thumbnail manager) instance |
| 161 // for this profile. | 164 // for this profile. |
| 162 virtual history::TopSites* GetTopSites() = 0; | 165 virtual history::TopSites* GetTopSites() = 0; |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 public NotificationObserver { | 476 public NotificationObserver { |
| 474 public: | 477 public: |
| 475 virtual ~ProfileImpl(); | 478 virtual ~ProfileImpl(); |
| 476 | 479 |
| 477 // Profile implementation. | 480 // Profile implementation. |
| 478 virtual ProfileId GetRuntimeId(); | 481 virtual ProfileId GetRuntimeId(); |
| 479 virtual FilePath GetPath(); | 482 virtual FilePath GetPath(); |
| 480 virtual bool IsOffTheRecord(); | 483 virtual bool IsOffTheRecord(); |
| 481 virtual Profile* GetOffTheRecordProfile(); | 484 virtual Profile* GetOffTheRecordProfile(); |
| 482 virtual void DestroyOffTheRecordProfile(); | 485 virtual void DestroyOffTheRecordProfile(); |
| 486 virtual bool HasOffTheRecordProfile(); |
| 483 virtual Profile* GetOriginalProfile(); | 487 virtual Profile* GetOriginalProfile(); |
| 484 virtual webkit_database::DatabaseTracker* GetDatabaseTracker(); | 488 virtual webkit_database::DatabaseTracker* GetDatabaseTracker(); |
| 485 virtual history::TopSites* GetTopSites(); | 489 virtual history::TopSites* GetTopSites(); |
| 486 virtual VisitedLinkMaster* GetVisitedLinkMaster(); | 490 virtual VisitedLinkMaster* GetVisitedLinkMaster(); |
| 487 virtual UserScriptMaster* GetUserScriptMaster(); | 491 virtual UserScriptMaster* GetUserScriptMaster(); |
| 488 virtual SSLHostState* GetSSLHostState(); | 492 virtual SSLHostState* GetSSLHostState(); |
| 489 virtual net::TransportSecurityState* GetTransportSecurityState(); | 493 virtual net::TransportSecurityState* GetTransportSecurityState(); |
| 490 virtual ExtensionsService* GetExtensionsService(); | 494 virtual ExtensionsService* GetExtensionsService(); |
| 491 virtual ExtensionDevToolsManager* GetExtensionDevToolsManager(); | 495 virtual ExtensionDevToolsManager* GetExtensionDevToolsManager(); |
| 492 virtual ExtensionProcessManager* GetExtensionProcessManager(); | 496 virtual ExtensionProcessManager* GetExtensionProcessManager(); |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. | 674 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. |
| 671 | 675 |
| 672 #if defined(OS_CHROMEOS) | 676 #if defined(OS_CHROMEOS) |
| 673 chromeos::Preferences chromeos_preferences_; | 677 chromeos::Preferences chromeos_preferences_; |
| 674 #endif | 678 #endif |
| 675 | 679 |
| 676 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 680 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
| 677 }; | 681 }; |
| 678 | 682 |
| 679 #endif // CHROME_BROWSER_PROFILE_H_ | 683 #endif // CHROME_BROWSER_PROFILE_H_ |
| OLD | NEW |