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

Unified Diff: content/public/browser/clipboard_write_callback_params.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/clipboard_write_callback_params.h
diff --git a/content/public/browser/clipboard_write_callback_params.h b/content/public/browser/clipboard_write_callback_params.h
new file mode 100644
index 0000000000000000000000000000000000000000..ee687d84cadeda2c110c214b4ae2270ac17f6c88
--- /dev/null
+++ b/content/public/browser/clipboard_write_callback_params.h
@@ -0,0 +1,24 @@
+#ifndef CONTENT_PUBLIC_BROWSER_CLIPBOARD_WRITE_CALLBACK_PARAMS_H_
jam 2013/02/01 17:08:16 agree with joi, don't add this and just use two pa
vasilii 2013/02/01 17:25:08 Do you agree to introduce a dependence on ui/base/
+#define CONTENT_PUBLIC_BROWSER_CLIPBOARD_WRITE_CALLBACK_PARAMS_H_
+
+#include "ui/base/clipboard/clipboard.h"
+
+namespace content {
+
+class BrowserContext;
+
+// ClipboardWriteCallbackParams carries data through ChromeContentBrowserClient
+// thus allowing "chrome" layer to modify Clipboard::ObjectMap before writing.
+struct ClipboardWriteCallbackParams {
+ ClipboardWriteCallbackParams(BrowserContext* context,
+ ui::Clipboard::ObjectMap& object_map)
+ : browser_context(context),
+ objects(object_map) {
+ }
+
+ BrowserContext* browser_context;
+ ui::Clipboard::ObjectMap& objects;
+};
+
+} // namespace content
+#endif // CONTENT_PUBLIC_BROWSER_CLIPBOARD_WRITE_CALLBACK_PARAMS_H_
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698