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 CONTENT_PUBLIC_BROWSER_INCOGNITO_MARKER_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_INCOGNITO_MARKER_H_ |
| 7 |
| 8 #include "content/common/content_export.h" |
| 9 #include "ui/base/clipboard/clipboard.h" |
| 10 |
| 11 namespace content { |
| 12 |
| 13 class BrowserContext; |
| 14 |
| 15 // We want to add a special flag stored in OS clipboard in order to delete |
| 16 // this entry upon OffTheRecord context destruction. |
| 17 // Stores |profile| in the |objects| if |profile| is OffTheRecord context. |
| 18 // Otherwise, method does nothing. |
| 19 CONTENT_EXPORT void AddIncognitoMarkerForOffTheRecordProfile( |
| 20 BrowserContext* profile, ui::Clipboard::ObjectMap* objects); |
| 21 |
| 22 // Reads pointer to BrowserContext from the clipboard |
| 23 // and compares it to |profile|. |
| 24 CONTENT_EXPORT bool IsThisIncognitoMarkerInClipboard(BrowserContext* profile); |
| 25 |
| 26 } // namespace content |
| 27 #endif // CONTENT_PUBLIC_BROWSER_INCOGNITO_MARKER_H_ |
OLD | NEW |