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

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

Issue 12041078: Clear the clipboard closing Incognito window (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moved the feature to 'content' layer 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/incognito_marker.h
diff --git a/content/public/browser/incognito_marker.h b/content/public/browser/incognito_marker.h
new file mode 100644
index 0000000000000000000000000000000000000000..019b631da8d8bf6412d87ce69c8de9f6c825b37f
--- /dev/null
+++ b/content/public/browser/incognito_marker.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_BROWSER_INCOGNITO_MARKER_H_
+#define CONTENT_PUBLIC_BROWSER_INCOGNITO_MARKER_H_
+
+#include "content/common/content_export.h"
+#include "ui/base/clipboard/clipboard.h"
+
+namespace content {
+
+class BrowserContext;
+
+// We want to add a special flag stored in OS clipboard in order to delete
+// this entry upon OffTheRecord context destruction.
+// Stores |profile| in the |objects| if |profile| is OffTheRecord context.
+// Otherwise, method does nothing.
+CONTENT_EXPORT void AddIncognitoMarkerForOffTheRecordProfile(
+ BrowserContext* profile, ui::Clipboard::ObjectMap* objects);
+
+// Reads pointer to BrowserContext from the clipboard
+// and compares it to |profile|.
+CONTENT_EXPORT bool IsThisIncognitoMarkerInClipboard(BrowserContext* profile);
+
+} // namespace content
+#endif // CONTENT_PUBLIC_BROWSER_INCOGNITO_MARKER_H_

Powered by Google App Engine
This is Rietveld 408576698