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

Unified Diff: ui/base/test/test_clipboard.h

Issue 574273002: Rewrite clipboard write IPC handling to be easier to understand. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Document Created 6 years, 1 month 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
« no previous file with comments | « ui/base/clipboard/scoped_clipboard_writer.cc ('k') | ui/base/test/test_clipboard.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/test/test_clipboard.h
diff --git a/ui/base/test/test_clipboard.h b/ui/base/test/test_clipboard.h
index c1701bf72464242fe041bd3aa538d3b7a161fd67..58fa5075fa613abe76ea593552769cdf26013da6 100644
--- a/ui/base/test/test_clipboard.h
+++ b/ui/base/test/test_clipboard.h
@@ -16,7 +16,10 @@ class TestClipboard : public Clipboard {
TestClipboard();
~TestClipboard() override;
- static void UseForCurrentThread();
+ // Creates and associates a TestClipboard with the current thread. When no
+ // longer needed, the returned clipboard must be freed by calling
+ // Clipboard::DestroyClipboardForCurrentThread() on the same thread.
+ static Clipboard* CreateForCurrentThread();
// Clipboard overrides.
uint64 GetSequenceNumber(ClipboardType type) const override;
« no previous file with comments | « ui/base/clipboard/scoped_clipboard_writer.cc ('k') | ui/base/test/test_clipboard.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698