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_ |