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

Side by Side Diff: chrome/browser/clipboard/incognito_marker.h

Issue 12041078: Clear the clipboard closing Incognito window (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merge with master 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 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698