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

Unified Diff: chromeos/dbus/debug_daemon_client.h

Issue 2081153002: No dbus::FileDescriptor in DebugDaemonClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test Created 4 years, 4 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: chromeos/dbus/debug_daemon_client.h
diff --git a/chromeos/dbus/debug_daemon_client.h b/chromeos/dbus/debug_daemon_client.h
index 803500d489e26504c2bc678e1b8f87be98bc084a..c9b3932a69b227390d7ccdb208b989dc8110436a 100644
--- a/chromeos/dbus/debug_daemon_client.h
+++ b/chromeos/dbus/debug_daemon_client.h
@@ -17,7 +17,6 @@
#include "base/trace_event/tracing_agent.h"
#include "chromeos/chromeos_export.h"
#include "chromeos/dbus/dbus_client.h"
-#include "dbus/file_descriptor.h"
#include "third_party/cros_system_api/dbus/service_constants.h"
namespace chromeos {
@@ -33,12 +32,11 @@ class CHROMEOS_EXPORT DebugDaemonClient
// - succeeded: was the logs stored successfully.
typedef base::Callback<void(bool succeeded)> GetDebugLogsCallback;
- // Requests to store debug logs into |file| and calls |callback|
+ // Requests to store debug logs into |file_descriptor| and calls |callback|
// when completed. Debug logs will be stored in the .tgz if
// |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,
+ int file_descriptor,
satorux1 2016/08/23 04:43:37 How about taking ownership of the file descriptor
hashimoto 2016/08/23 06:38:50 Here we want to avoid owning the given FD because
satorux1 2016/08/23 07:02:02 Makes sense. In that case, could you add a comment
hashimoto 2016/08/23 07:41:27 Added a comment about FD duplication.
const GetDebugLogsCallback& callback) = 0;
// Called once SetDebugMode() is complete. Takes one parameter:
@@ -102,7 +100,7 @@ class CHROMEOS_EXPORT DebugDaemonClient
// no data written.
virtual void GetPerfOutput(base::TimeDelta duration,
const std::vector<std::string>& perf_args,
- dbus::ScopedFileDescriptor file_descriptor,
+ int file_descriptor,
satorux1 2016/08/23 04:43:37 ditto. maybe take ownership?
hashimoto 2016/08/23 06:38:50 Acknowledged.
satorux1 2016/08/23 07:02:02 ditto. a comment about file_descriptor ownership w
hashimoto 2016/08/23 07:41:27 Done.
const DBusMethodErrorCallback& error_callback) = 0;
// Callback type for GetScrubbedLogs(), GetAllLogs() or GetUserLogFiles().

Powered by Google App Engine
This is Rietveld 408576698