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

Side by Side Diff: chromeos/dbus/debug_daemon_client.cc

Issue 9838085: Move files inside chrome/browser/chromeos/dbus to chromeos/dbus (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 8 years, 8 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 unified diff | Download patch
« no previous file with comments | « chromeos/dbus/debug_daemon_client.h ('k') | chromeos/dbus/flimflam_client_helper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "chrome/browser/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" 13 #include "base/eintr_wrapper.h"
14 #include "base/memory/ref_counted_memory.h" 14 #include "base/memory/ref_counted_memory.h"
15 #include "base/platform_file.h" 15 #include "base/platform_file.h"
16 #include "base/string_util.h" 16 #include "base/string_util.h"
17 #include "content/public/browser/browser_thread.h"
18 #include "dbus/bus.h" 17 #include "dbus/bus.h"
19 #include "dbus/message.h" 18 #include "dbus/message.h"
20 #include "dbus/object_path.h" 19 #include "dbus/object_path.h"
21 #include "dbus/object_proxy.h" 20 #include "dbus/object_proxy.h"
22 #include "net/base/file_stream.h" 21 #include "net/base/file_stream.h"
23 #include "net/base/io_buffer.h" 22 #include "net/base/io_buffer.h"
24 #include "net/base/net_errors.h" 23 #include "net/base/net_errors.h"
25 #include "third_party/cros_system_api/dbus/service_constants.h" 24 #include "third_party/cros_system_api/dbus/service_constants.h"
26 25
27 using content::BrowserThread;
28
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 // Simple class to encapsulate collecting data from a pipe into a 33 // Simple class to encapsulate collecting data from a pipe into a
37 // string. To use, instantiate the class, start i/o, and then delete 34 // string. To use, instantiate the class, start i/o, and then delete
38 // the instance on callback. The data should be retrieved before 35 // the instance on callback. The data should be retrieved before
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 // static 268 // static
272 DebugDaemonClient* DebugDaemonClient::Create(DBusClientImplementationType type, 269 DebugDaemonClient* DebugDaemonClient::Create(DBusClientImplementationType type,
273 dbus::Bus* bus) { 270 dbus::Bus* bus) {
274 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) 271 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION)
275 return new DebugDaemonClientImpl(bus); 272 return new DebugDaemonClientImpl(bus);
276 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type); 273 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type);
277 return new DebugDaemonClientStubImpl(); 274 return new DebugDaemonClientStubImpl();
278 } 275 }
279 276
280 } // namespace chromeos 277 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/debug_daemon_client.h ('k') | chromeos/dbus/flimflam_client_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698