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

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

Issue 10831059: debugd: Add GetNetworkInterfaces functionality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add pointer to the documentation of the GetNetworkInterface json format. Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chromeos/dbus/debug_daemon_client.cc » ('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 #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 25 matching lines...) Expand all
36 // Called once SetDebugMode() is complete. Takes one parameter: 36 // Called once SetDebugMode() is complete. Takes one parameter:
37 // - succeeded: debug mode was changed successfully. 37 // - succeeded: debug mode was changed successfully.
38 typedef base::Callback<void(bool succeeded)> SetDebugModeCallback; 38 typedef base::Callback<void(bool succeeded)> SetDebugModeCallback;
39 39
40 // Requests to change debug mode to given |subsystem| and calls 40 // Requests to change debug mode to given |subsystem| and calls
41 // |callback| when completed. |subsystem| should be one of the 41 // |callback| when completed. |subsystem| should be one of the
42 // following: "wifi", "ethernet", "cellular" or "none". 42 // following: "wifi", "ethernet", "cellular" or "none".
43 virtual void SetDebugMode(const std::string& subsystem, 43 virtual void SetDebugMode(const std::string& subsystem,
44 const SetDebugModeCallback& callback) = 0; 44 const SetDebugModeCallback& callback) = 0;
45 45
46 // Called once GetRoutes() is complete.
46 typedef base::Callback<void(bool succeeded, 47 typedef base::Callback<void(bool succeeded,
47 const std::vector<std::string>& routes)> 48 const std::vector<std::string>& routes)>
48 GetRoutesCallback; 49 GetRoutesCallback;
49 virtual void GetRoutes(bool numeric, bool ipv6, 50 virtual void GetRoutes(bool numeric, bool ipv6,
50 const GetRoutesCallback& callback) = 0; 51 const GetRoutesCallback& callback) = 0;
51 52
53 // Called once GetNetworkStatus() is complete.
52 typedef base::Callback<void(bool succeeded, const std::string& status)> 54 typedef base::Callback<void(bool succeeded, const std::string& status)>
53 GetNetworkStatusCallback; 55 GetNetworkStatusCallback;
54 56
57 // Gets information about network status as json.
55 virtual void GetNetworkStatus(const GetNetworkStatusCallback& callback) = 0; 58 virtual void GetNetworkStatus(const GetNetworkStatusCallback& callback) = 0;
56 59
60 // Called once GetModemStatus() is complete.
57 typedef base::Callback<void(bool succeeded, const std::string& status)> 61 typedef base::Callback<void(bool succeeded, const std::string& status)>
58 GetModemStatusCallback; 62 GetModemStatusCallback;
59 63
64 // Gets information about modem status as json.
60 virtual void GetModemStatus(const GetModemStatusCallback& callback) = 0; 65 virtual void GetModemStatus(const GetModemStatusCallback& callback) = 0;
61 66
67 // Called once GetNetworkInterfaces() is complete. Takes two parameters:
68 // - succeeded: information was obtained successfully.
69 // - status: network interfaces information in json. For details, please refer
70 // to http://gerrit.chromium.org/gerrit/#/c/28045/5/src/helpers/netif.cc
71 typedef base::Callback<void(bool succeeded, const std::string& status)>
72 GetNetworkInterfacesCallback;
73
74 // Gets information about network interfaces as json.
75 virtual void GetNetworkInterfaces(
76 const GetNetworkInterfacesCallback& callback) = 0;
77
78 // Called once GetAllLogs() is complete.
62 typedef base::Callback<void(bool succeeded, 79 typedef base::Callback<void(bool succeeded,
63 const std::map<std::string, std::string>& logs)> 80 const std::map<std::string, std::string>& logs)>
64 GetAllLogsCallback; 81 GetAllLogsCallback;
65 virtual void GetAllLogs(const GetAllLogsCallback& callback) = 0; 82 virtual void GetAllLogs(const GetAllLogsCallback& callback) = 0;
66 83
67 // Requests to start system/kernel tracing. 84 // Requests to start system/kernel tracing.
68 virtual void StartSystemTracing() = 0; 85 virtual void StartSystemTracing() = 0;
69 86
70 // Called once RequestStopSystemTracing() is complete. Takes one parameter: 87 // Called once RequestStopSystemTracing() is complete. Takes one parameter:
71 // - result: the data collected while tracing was active 88 // - result: the data collected while tracing was active
(...skipping 15 matching lines...) Expand all
87 // Create() should be used instead. 104 // Create() should be used instead.
88 DebugDaemonClient(); 105 DebugDaemonClient();
89 106
90 private: 107 private:
91 DISALLOW_COPY_AND_ASSIGN(DebugDaemonClient); 108 DISALLOW_COPY_AND_ASSIGN(DebugDaemonClient);
92 }; 109 };
93 110
94 } // namespace chromeos 111 } // namespace chromeos
95 112
96 #endif // CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ 113 #endif // CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chromeos/dbus/debug_daemon_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698