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

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

Issue 10024056: Added functionality to chrome://net-internals/#chromeos page that user (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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
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 #ifndef CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_
6 #define CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ 6 #define CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted_memory.h" 9 #include "base/memory/ref_counted_memory.h"
10 #include "chromeos/chromeos_export.h" 10 #include "chromeos/chromeos_export.h"
11 #include "chromeos/dbus/dbus_client_implementation_type.h" 11 #include "chromeos/dbus/dbus_client_implementation_type.h"
12 12
13 namespace dbus { 13 namespace dbus {
14 class Bus; 14 class Bus;
15 } // namespace dbus 15 } // namespace dbus
16 16
17 namespace chromeos { 17 namespace chromeos {
18 18
19 // DebugDaemonClient is used to communicate with the debug daemon. 19 // DebugDaemonClient is used to communicate with the debug daemon.
20 class CHROMEOS_EXPORT DebugDaemonClient { 20 class CHROMEOS_EXPORT DebugDaemonClient {
21 public: 21 public:
22 virtual ~DebugDaemonClient(); 22 virtual ~DebugDaemonClient();
23 23
24 // Called once SetDebugMode() is complete. Takes one parameter:
25 // - succeeded: debug mode was changed successfully.
26 typedef base::Callback<void(bool succeeded)> SetDebugModeCallback;
27
28 // Requests to change debug mode to given |subsystem| and calls
29 // |callback| when completed.
satorux1 2012/04/10 20:23:12 how does "subsystem" look like? would be nice to h
ygorshenin1 2012/04/11 09:04:39 Done.
30 virtual void SetDebugMode(const std::string& subsystem,
31 const SetDebugModeCallback& callback) = 0;
32
24 // Requests to start system/kernel tracing. 33 // Requests to start system/kernel tracing.
25 virtual void StartSystemTracing() = 0; 34 virtual void StartSystemTracing() = 0;
26 35
27 // Called once RequestStopSystemTracing() is complete. Takes one parameter: 36 // Called once RequestStopSystemTracing() is complete. Takes one parameter:
28 // - result: the data collected while tracing was active 37 // - result: the data collected while tracing was active
29 typedef base::Callback<void(const scoped_refptr<base::RefCountedString>& 38 typedef base::Callback<void(const scoped_refptr<base::RefCountedString>&
30 result)> StopSystemTracingCallback; 39 result)> StopSystemTracingCallback;
31 40
32 // Requests to stop system tracing and calls |callback| when completed. 41 // Requests to stop system tracing and calls |callback| when completed.
33 virtual bool RequestStopSystemTracing(const StopSystemTracingCallback& 42 virtual bool RequestStopSystemTracing(const StopSystemTracingCallback&
(...skipping 10 matching lines...) Expand all
44 // Create() should be used instead. 53 // Create() should be used instead.
45 DebugDaemonClient(); 54 DebugDaemonClient();
46 55
47 private: 56 private:
48 DISALLOW_COPY_AND_ASSIGN(DebugDaemonClient); 57 DISALLOW_COPY_AND_ASSIGN(DebugDaemonClient);
49 }; 58 };
50 59
51 } // namespace chromeos 60 } // namespace chromeos
52 61
53 #endif // CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ 62 #endif // CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/net_internals/net_internals_ui.cc ('k') | chromeos/dbus/debug_daemon_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698