Index: chrome/browser/clipboard/incognito_marker.h |
diff --git a/chrome/browser/clipboard/incognito_marker.h b/chrome/browser/clipboard/incognito_marker.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..92d72f8199eae9a3cfefcefa44113887d6f4acf5 |
--- /dev/null |
+++ b/chrome/browser/clipboard/incognito_marker.h |
@@ -0,0 +1,26 @@ |
+// 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 CHROME_BROWSER_CLIPBOARD_INCOGNITO_MARKER_H_ |
+#define CHROME_BROWSER_CLIPBOARD_INCOGNITO_MARKER_H_ |
+ |
+#include "ui/base/clipboard/clipboard.h" |
+ |
+class Profile; |
+ |
+namespace chrome { |
+ |
+// We want to add a special flag stored in OS clipboard in order to delete |
+// this entry upon OffTheRecord profile destruction. |
+// Stores |profile| in the |objects| if |profile| is OffTheRecord profile. |
+// Otherwise, method does nothing. |
+void AddIncognitoMarkerForOffTheRecordProfile( |
+ ui::Clipboard::ObjectMap& objects, Profile* profile); |
+ |
+// Reads pointer to OffTheRecordProfile from the clipboard |
+// and compares it to |profile|. |
+bool IsThisIncognitoMarkerInClipboard(Profile* profile); |
+ |
+} // namespace chrome |
+#endif // CHROME_BROWSER_CLIPBOARD_INCOGNITO_MARKER_H_ |