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

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

Issue 12041078: Clear the clipboard closing Incognito window (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressed comments Created 7 years, 11 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/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index 9fe6af0483e94ed896c6c57f23deb9fa1f3768d7..ac7093e7d6679d3dd590ce8191778bcba53942d1 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -68,6 +68,7 @@ class SpeechRecognitionManagerDelegate;
class WebContents;
class WebContentsView;
class WebContentsViewDelegate;
+struct ClipboardWriteCallbackParams;
struct MainFunctionParams;
struct ShowDesktopNotificationHostMsgParams;
@@ -444,6 +445,11 @@ class CONTENT_EXPORT ContentBrowserClient {
// Returns the directory containing hyphenation dictionaries.
virtual FilePath GetHyphenDictionaryDirectory();
+ // Called before writing clipboard content, thus allowing an embedder to
+ // modify the contents of Clipboard::ObjectMap.
+ virtual void BeforeWriteToClipboard(
+ const ClipboardWriteCallbackParams& params) {}
+
#if defined(OS_POSIX) && !defined(OS_MACOSX)
// Populates |mappings| with all files that need to be mapped before launching
// a child process.

Powered by Google App Engine
This is Rietveld 408576698