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

Unified Diff: content/public/browser/off_the_record_marker.h

Issue 12041078: Clear the clipboard closing Incognito window (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed includes + style changes 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/off_the_record_marker.h
diff --git a/content/public/browser/off_the_record_marker.h b/content/public/browser/off_the_record_marker.h
new file mode 100644
index 0000000000000000000000000000000000000000..be241a29413238cf473d728b2c5746d454565839
--- /dev/null
+++ b/content/public/browser/off_the_record_marker.h
@@ -0,0 +1,24 @@
+// 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 CONTENT_PUBLIC_BROWSER_OFF_THE_RECORD_MARKER_H_
+#define CONTENT_PUBLIC_BROWSER_OFF_THE_RECORD_MARKER_H_
+
+#include "content/common/content_export.h"
+#include "ui/base/clipboard/clipboard.h"
+
+namespace content {
+
+class BrowserContext;
+
+// We want to add a special flag stored in OS clipboard in order to delete
+// this entry upon OffTheRecord context destruction.
+// Returns a SourceTag (pointer) if |context| is OffTheRecord context.
+// Otherwise, NULL.
+// If the clipboard contains that SourceTag at the time of |context|
+// destruction it will be flushed.
+CONTENT_EXPORT ui::Clipboard::SourceTag GetMarkerForOffTheRecordContext(
+ BrowserContext* context);
dcheng 2013/02/06 22:31:40 Nit: match newline at beginning of namespace block
vasilii 2013/02/07 17:30:05 Done.
+} // namespace content
+#endif // CONTENT_PUBLIC_BROWSER_OFF_THE_RECORD_MARKER_H_

Powered by Google App Engine
This is Rietveld 408576698