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

Unified Diff: chrome/browser/sync_file_system/sync_file_system_test_util.h

Issue 24140003: [SyncFS] Add generic result reciever (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reupload Created 7 years, 3 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: chrome/browser/sync_file_system/sync_file_system_test_util.h
diff --git a/chrome/browser/sync_file_system/sync_file_system_test_util.h b/chrome/browser/sync_file_system/sync_file_system_test_util.h
index a7c33facc0a222a051cbe1963d751de99e0c38c8..66c3b8a6cf9fbaaa0b6b7102f80bf884bcf10055 100644
--- a/chrome/browser/sync_file_system/sync_file_system_test_util.h
+++ b/chrome/browser/sync_file_system/sync_file_system_test_util.h
@@ -6,12 +6,9 @@
#define CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_TEST_UTIL_H_
#include "base/callback_forward.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
namespace base {
class RunLoop;
-class SingleThreadTaskRunner;
}
namespace sync_file_system {
@@ -22,6 +19,13 @@ void AssignAndQuit(base::RunLoop* run_loop, R* result_out, R result);
template <typename R> base::Callback<void(R)>
AssignAndQuitCallback(base::RunLoop* run_loop, R* result);
+template <typename Arg>
+base::Callback<void(Arg)> CreateResultReceiver(Arg* arg_out);
+
+template <typename Arg1, typename Arg2>
+base::Callback<void(Arg1, Arg2)> CreateResultReceiver(Arg1* arg1_out,
+ Arg2* arg2_out);
+
} // namespace sync_file_system
#endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_TEST_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698