diff options
author | idanan@chromium.org <idanan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-27 19:50:59 +0000 |
---|---|---|
committer | idanan@chromium.org <idanan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-27 19:50:59 +0000 |
commit | 860f55497abe0123f3c4a6a139ccd84f13d892be (patch) | |
tree | 0da2d275be23012e8f4cb603e677b01db9e6646f /chrome/browser/profile.h | |
parent | c3ef3429eba3f39db64176ab7a2d722fde388725 (diff) | |
download | chromium_src-860f55497abe0123f3c4a6a139ccd84f13d892be.zip chromium_src-860f55497abe0123f3c4a6a139ccd84f13d892be.tar.gz chromium_src-860f55497abe0123f3c4a6a139ccd84f13d892be.tar.bz2 |
Issue 348: can view old incognito cache if main process left running
Same place we clear cookies when the last incognito window is closed,
destroy the entire incognito profile which by implication destoys the
incognito cache.
BUG=348
Review URL: http://codereview.chromium.org/53101
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12688 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile.h')
-rw-r--r-- | chrome/browser/profile.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/profile.h b/chrome/browser/profile.h index 7e48419..236d5cf 100644 --- a/chrome/browser/profile.h +++ b/chrome/browser/profile.h @@ -93,6 +93,9 @@ class Profile { // record, the same profile is returned. virtual Profile* GetOffTheRecordProfile() = 0; + // Destroys the off the record profile. + virtual void DestroyOffTheRecordProfile() = 0; + // Return the original "recording" profile. This method returns this if the // profile is not off the record. virtual Profile* GetOriginalProfile() = 0; @@ -268,6 +271,7 @@ class ProfileImpl : public Profile, virtual FilePath GetPath(); virtual bool IsOffTheRecord(); virtual Profile* GetOffTheRecordProfile(); + virtual void DestroyOffTheRecordProfile(); virtual Profile* GetOriginalProfile(); virtual VisitedLinkMaster* GetVisitedLinkMaster(); virtual UserScriptMaster* GetUserScriptMaster(); |