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

Side by Side 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698