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

Unified Diff: content/public/browser/browser_context.h

Issue 12041078: Clear the clipboard closing Incognito window (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moved incogito marker to BrowserContext Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/browser_context.h
diff --git a/content/public/browser/browser_context.h b/content/public/browser/browser_context.h
index d82326af349346c468ef9a17908198c4f1b9794b..450f27637a9d4b220f38d2da5aaf4e48af82444c 100644
--- a/content/public/browser/browser_context.h
+++ b/content/public/browser/browser_context.h
@@ -94,6 +94,14 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
// Tells the HTML5 objects on this context to purge any uneeded memory.
static void PurgeMemory(BrowserContext* browser_context);
+ // We want to add a special flag stored in OS clipboard in order to delete
+ // this entry upon OffTheRecord context destruction.
+ // Returns a Clipboard::SourceTag (pointer) if |context| is OffTheRecord
+ // context. Otherwise, NULL.
+ // If the clipboard contains that SourceTag at the time of |context|
+ // destruction it will be flushed.
jam 2013/02/07 21:52:17 nit: this comment is a bit verbose. can you shrink
vasilii 2013/02/08 09:27:36 If I include clipboard.h, apps/app_restore_service
jam 2013/02/08 22:26:21 i'm not familiar with gtk. you can ask erg
Elliot Glaysher 2013/02/09 00:22:21 The only thing I can think of is that you're doing
vasilii 2013/02/13 16:57:25 Done.
+ static void* GetMarkerForOffTheRecordContext(BrowserContext* context);
+
virtual ~BrowserContext();
// Returns the path of the directory where this context's data is stored.

Powered by Google App Engine
This is Rietveld 408576698