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 <fcntl.h> | 5 #include <fcntl.h> |
6 #include <unistd.h> | 6 #include <unistd.h> |
7 | 7 |
8 #include "chromeos/dbus/debug_daemon_client.h" | 8 #include "chromeos/dbus/debug_daemon_client.h" |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/chromeos/chromeos_version.h" | 12 #include "base/chromeos/chromeos_version.h" |
13 #include "base/eintr_wrapper.h" | |
14 #include "base/memory/ref_counted_memory.h" | 13 #include "base/memory/ref_counted_memory.h" |
15 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
16 #include "base/platform_file.h" | 15 #include "base/platform_file.h" |
| 16 #include "base/posix/eintr_wrapper.h" |
17 #include "base/string_util.h" | 17 #include "base/string_util.h" |
18 #include "base/threading/worker_pool.h" | 18 #include "base/threading/worker_pool.h" |
19 #include "dbus/bus.h" | 19 #include "dbus/bus.h" |
20 #include "dbus/message.h" | 20 #include "dbus/message.h" |
21 #include "dbus/object_path.h" | 21 #include "dbus/object_path.h" |
22 #include "dbus/object_proxy.h" | 22 #include "dbus/object_proxy.h" |
23 #include "net/base/file_stream.h" | 23 #include "net/base/file_stream.h" |
24 #include "net/base/io_buffer.h" | 24 #include "net/base/io_buffer.h" |
25 #include "net/base/net_errors.h" | 25 #include "net/base/net_errors.h" |
26 #include "third_party/cros_system_api/dbus/service_constants.h" | 26 #include "third_party/cros_system_api/dbus/service_constants.h" |
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 // static | 589 // static |
590 DebugDaemonClient* DebugDaemonClient::Create(DBusClientImplementationType type, | 590 DebugDaemonClient* DebugDaemonClient::Create(DBusClientImplementationType type, |
591 dbus::Bus* bus) { | 591 dbus::Bus* bus) { |
592 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) | 592 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) |
593 return new DebugDaemonClientImpl(bus); | 593 return new DebugDaemonClientImpl(bus); |
594 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type); | 594 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type); |
595 return new DebugDaemonClientStubImpl(); | 595 return new DebugDaemonClientStubImpl(); |
596 } | 596 } |
597 | 597 |
598 } // namespace chromeos | 598 } // namespace chromeos |
OLD | NEW |