| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chromeos/dbus/debug_daemon_client.h" | 5 #include "chromeos/dbus/debug_daemon_client.h" |
| 6 | 6 |
| 7 #include <fcntl.h> | 7 #include <fcntl.h> |
| 8 #include <unistd.h> | 8 #include <unistd.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
| 14 #include "base/callback.h" | |
| 15 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 16 #include "base/location.h" | 15 #include "base/location.h" |
| 17 #include "base/memory/ref_counted_memory.h" | |
| 18 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
| 19 #include "base/posix/eintr_wrapper.h" | 17 #include "base/posix/eintr_wrapper.h" |
| 20 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
| 21 #include "base/task_runner_util.h" | 19 #include "base/task_runner_util.h" |
| 22 #include "chromeos/dbus/pipe_reader.h" | 20 #include "chromeos/dbus/pipe_reader.h" |
| 23 #include "dbus/bus.h" | 21 #include "dbus/bus.h" |
| 24 #include "dbus/message.h" | 22 #include "dbus/message.h" |
| 25 #include "dbus/object_path.h" | 23 #include "dbus/object_path.h" |
| 26 #include "dbus/object_proxy.h" | 24 #include "dbus/object_proxy.h" |
| 27 #include "third_party/cros_system_api/dbus/service_constants.h" | |
| 28 | 25 |
| 29 namespace { | 26 namespace { |
| 30 | 27 |
| 31 // Used in DebugDaemonClient::EmptySystemStopTracingCallback(). | 28 // Used in DebugDaemonClient::EmptySystemStopTracingCallback(). |
| 32 void EmptyStopSystemTracingCallbackBody( | 29 void EmptyStopSystemTracingCallbackBody( |
| 33 const scoped_refptr<base::RefCountedString>& unused_result) { | 30 const scoped_refptr<base::RefCountedString>& unused_result) { |
| 34 } | 31 } |
| 35 | 32 |
| 36 } // namespace | 33 } // namespace |
| 37 | 34 |
| (...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 DebugDaemonClient::EmptyStopSystemTracingCallback() { | 616 DebugDaemonClient::EmptyStopSystemTracingCallback() { |
| 620 return base::Bind(&EmptyStopSystemTracingCallbackBody); | 617 return base::Bind(&EmptyStopSystemTracingCallbackBody); |
| 621 } | 618 } |
| 622 | 619 |
| 623 // static | 620 // static |
| 624 DebugDaemonClient* DebugDaemonClient::Create() { | 621 DebugDaemonClient* DebugDaemonClient::Create() { |
| 625 return new DebugDaemonClientImpl(); | 622 return new DebugDaemonClientImpl(); |
| 626 } | 623 } |
| 627 | 624 |
| 628 } // namespace chromeos | 625 } // namespace chromeos |
| OLD | NEW |