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/memory/ref_counted_memory.h" | 13 #include "base/memory/ref_counted_memory.h" |
14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
15 #include "base/platform_file.h" | 15 #include "base/platform_file.h" |
16 #include "base/posix/eintr_wrapper.h" | 16 #include "base/posix/eintr_wrapper.h" |
17 #include "base/string_util.h" | 17 #include "base/strings/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" |
27 | 27 |
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
634 // static | 634 // static |
635 DebugDaemonClient* DebugDaemonClient::Create(DBusClientImplementationType type, | 635 DebugDaemonClient* DebugDaemonClient::Create(DBusClientImplementationType type, |
636 dbus::Bus* bus) { | 636 dbus::Bus* bus) { |
637 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) | 637 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) |
638 return new DebugDaemonClientImpl(bus); | 638 return new DebugDaemonClientImpl(bus); |
639 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type); | 639 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type); |
640 return new DebugDaemonClientStubImpl(); | 640 return new DebugDaemonClientStubImpl(); |
641 } | 641 } |
642 | 642 |
643 } // namespace chromeos | 643 } // namespace chromeos |
OLD | NEW |