diff options
author | ygorshenin@chromium.org <ygorshenin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-28 14:33:11 +0000 |
---|---|---|
committer | ygorshenin@chromium.org <ygorshenin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-28 14:33:11 +0000 |
commit | 02ad2f17cedc32809da4f9807ef0048952304e9f (patch) | |
tree | a7e302d472d100f01dbb37d957752dc1285518c2 /chromeos/dbus/debug_daemon_client.h | |
parent | 550d1e5dd1d83e31730ec7cb55d41b9614ea0397 (diff) | |
download | chromium_src-02ad2f17cedc32809da4f9807ef0048952304e9f.zip chromium_src-02ad2f17cedc32809da4f9807ef0048952304e9f.tar.gz chromium_src-02ad2f17cedc32809da4f9807ef0048952304e9f.tar.bz2 |
Refactored StoreDebugLogs() path.
WorkerPool is replaced by BlockingPool in DebugDaemonClient. Added test for chrome://net-internals#chromeos "Store Debug Logs" button.
Based on https://codereview.chromium.org/323533002/.
BUG=387749
TEST=browser_tests:NetInternalsTest.netInternalsChromeOSViewStoreDebugLogs
Review URL: https://codereview.chromium.org/407783003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285902 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/debug_daemon_client.h')
-rw-r--r-- | chromeos/dbus/debug_daemon_client.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chromeos/dbus/debug_daemon_client.h b/chromeos/dbus/debug_daemon_client.h index 30cc5a4..36ef3b2 100644 --- a/chromeos/dbus/debug_daemon_client.h +++ b/chromeos/dbus/debug_daemon_client.h @@ -8,6 +8,7 @@ #include "base/callback.h" #include "base/files/file.h" #include "base/memory/ref_counted_memory.h" +#include "base/task_runner.h" #include "chromeos/chromeos_export.h" #include "chromeos/dbus/dbus_client.h" @@ -33,6 +34,7 @@ class CHROMEOS_EXPORT DebugDaemonClient : public DBusClient { // |is_compressed| is true, otherwise in logs will be stored in .tar format. virtual void DumpDebugLogs(bool is_compressed, base::File file, + scoped_refptr<base::TaskRunner> task_runner, const GetDebugLogsCallback& callback) = 0; // Called once SetDebugMode() is complete. Takes one parameter: @@ -116,8 +118,9 @@ class CHROMEOS_EXPORT DebugDaemonClient : public DBusClient { result)> StopSystemTracingCallback; // Requests to stop system tracing and calls |callback| when completed. - virtual bool RequestStopSystemTracing(const StopSystemTracingCallback& - callback) = 0; + virtual bool RequestStopSystemTracing( + scoped_refptr<base::TaskRunner> task_runner, + const StopSystemTracingCallback& callback) = 0; // Returns an empty SystemTracingCallback that does nothing. static StopSystemTracingCallback EmptyStopSystemTracingCallback(); |