OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CLIPBOARD_INCOGNITO_MARKER_H_ |
| 6 #define CHROME_BROWSER_CLIPBOARD_INCOGNITO_MARKER_H_ |
| 7 |
| 8 #include "ui/base/clipboard/clipboard.h" |
| 9 |
| 10 class Profile; |
| 11 |
| 12 namespace chrome { |
| 13 |
| 14 // We want to add a special flag stored in OS clipboard in order to delete |
| 15 // this entry upon OffTheRecord profile destruction. |
| 16 // Stores |profile| in the |objects| if |profile| is OffTheRecord profile. |
| 17 // Otherwise, method does nothing. |
| 18 void AddIncognitoMarkerForOffTheRecordProfile( |
| 19 ui::Clipboard::ObjectMap& objects, Profile* profile); |
| 20 |
| 21 // Reads pointer to OffTheRecordProfile from the clipboard |
| 22 // and compares it to |profile|. |
| 23 bool IsThisIncognitoMarkerInClipboard(Profile* profile); |
| 24 |
| 25 } // namespace chrome |
| 26 #endif // CHROME_BROWSER_CLIPBOARD_INCOGNITO_MARKER_H_ |
OLD | NEW |