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

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: Sync. 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/platform_file.h" 9 #include "base/platform_file.h"
10 #include "base/memory/ref_counted_memory.h" 10 #include "base/memory/ref_counted_memory.h"
(...skipping 13 matching lines...) Expand all
24 24
25 // Called once GetDebugLogs() is complete. Takes one parameter: 25 // Called once GetDebugLogs() is complete. Takes one parameter:
26 // - succeeded: was the logs stored successfully. 26 // - succeeded: was the logs stored successfully.
27 typedef base::Callback<void(bool succeeded)> GetDebugLogsCallback; 27 typedef base::Callback<void(bool succeeded)> GetDebugLogsCallback;
28 28
29 // Requests to store debug logs into |file| and calls |callback| 29 // Requests to store debug logs into |file| and calls |callback|
30 // when completed. Debug logs will be stored in the .tgz format. 30 // when completed. Debug logs will be stored in the .tgz format.
31 virtual void GetDebugLogs(base::PlatformFile file, 31 virtual void GetDebugLogs(base::PlatformFile file,
32 const GetDebugLogsCallback& callback) = 0; 32 const GetDebugLogsCallback& callback) = 0;
33 33
34 // Called once SetDebugMode() is complete. Takes one parameter:
35 // - succeeded: debug mode was changed successfully.
36 typedef base::Callback<void(bool succeeded)> SetDebugModeCallback;
37
38 // Requests to change debug mode to given |subsystem| and calls
39 // |callback| when completed. |subsystem| should be one of the
40 // following: "wifi", "ethernet", "cellular" or "none".
41 virtual void SetDebugMode(const std::string& subsystem,
42 const SetDebugModeCallback& callback) = 0;
43
34 // Requests to start system/kernel tracing. 44 // Requests to start system/kernel tracing.
35 virtual void StartSystemTracing() = 0; 45 virtual void StartSystemTracing() = 0;
36 46
37 // Called once RequestStopSystemTracing() is complete. Takes one parameter: 47 // Called once RequestStopSystemTracing() is complete. Takes one parameter:
38 // - result: the data collected while tracing was active 48 // - result: the data collected while tracing was active
39 typedef base::Callback<void(const scoped_refptr<base::RefCountedString>& 49 typedef base::Callback<void(const scoped_refptr<base::RefCountedString>&
40 result)> StopSystemTracingCallback; 50 result)> StopSystemTracingCallback;
41 51
42 // Requests to stop system tracing and calls |callback| when completed. 52 // Requests to stop system tracing and calls |callback| when completed.
43 virtual bool RequestStopSystemTracing(const StopSystemTracingCallback& 53 virtual bool RequestStopSystemTracing(const StopSystemTracingCallback&
(...skipping 10 matching lines...) Expand all
54 // Create() should be used instead. 64 // Create() should be used instead.
55 DebugDaemonClient(); 65 DebugDaemonClient();
56 66
57 private: 67 private:
58 DISALLOW_COPY_AND_ASSIGN(DebugDaemonClient); 68 DISALLOW_COPY_AND_ASSIGN(DebugDaemonClient);
59 }; 69 };
60 70
61 } // namespace chromeos 71 } // namespace chromeos
62 72
63 #endif // CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ 73 #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