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

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: Merge and compilation fixes 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
« no previous file with comments | « content/content_tests.gypi ('k') | ui/base/clipboard/clipboard.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/browser_context.h
diff --git a/content/public/browser/browser_context.h b/content/public/browser/browser_context.h
index a1b5d7b5239b9b9bfa5711d46935095fcf182647..a565cac9955eb1d3a59468d37beff964f3d68f88 100644
--- a/content/public/browser/browser_context.h
+++ b/content/public/browser/browser_context.h
@@ -10,6 +10,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/supports_user_data.h"
#include "content/common/content_export.h"
+#include "ui/base/clipboard/clipboard.h"
class GURL;
@@ -94,6 +95,12 @@ 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);
+ // 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.
+ static ui::Clipboard::SourceTag GetMarkerForOffTheRecordContext(
+ BrowserContext* context);
+
virtual ~BrowserContext();
// Returns the path of the directory where this context's data is stored.
« no previous file with comments | « content/content_tests.gypi ('k') | ui/base/clipboard/clipboard.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698