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 #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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
52 typedef base::Callback<void(bool succeeded, const std::string& status)> | 52 typedef base::Callback<void(bool succeeded, const std::string& status)> |
53 GetNetworkStatusCallback; | 53 GetNetworkStatusCallback; |
54 | 54 |
55 virtual void GetNetworkStatus(const GetNetworkStatusCallback& callback) = 0; | 55 virtual void GetNetworkStatus(const GetNetworkStatusCallback& callback) = 0; |
56 | 56 |
57 typedef base::Callback<void(bool succeeded, const std::string& status)> | 57 typedef base::Callback<void(bool succeeded, const std::string& status)> |
58 GetModemStatusCallback; | 58 GetModemStatusCallback; |
59 | 59 |
60 virtual void GetModemStatus(const GetModemStatusCallback& callback) = 0; | 60 virtual void GetModemStatus(const GetModemStatusCallback& callback) = 0; |
61 | 61 |
62 typedef base::Callback<void(bool succeeded, const std::string& status)> | |
satorux1
2012/07/31 20:36:52
how does |status| look like? Could you add some co
hshi1
2012/07/31 21:32:02
The |status| is a json containing a fairly complic
satorux1
2012/07/31 21:35:45
Would be nice to add a pointer to the documentatio
hshi1
2012/07/31 21:44:45
Done.
| |
63 GetInterfacesCallback; | |
64 | |
65 virtual void GetInterfaces(const GetInterfacesCallback& callback) = 0; | |
satorux1
2012/07/31 20:36:52
the function comment is missing here and elsewhere
hshi1
2012/07/31 21:32:02
Done.
On 2012/07/31 20:36:52, satorux1 wrote:
| |
66 | |
62 typedef base::Callback<void(bool succeeded, | 67 typedef base::Callback<void(bool succeeded, |
63 const std::map<std::string, std::string>& logs)> | 68 const std::map<std::string, std::string>& logs)> |
64 GetAllLogsCallback; | 69 GetAllLogsCallback; |
65 virtual void GetAllLogs(const GetAllLogsCallback& callback) = 0; | 70 virtual void GetAllLogs(const GetAllLogsCallback& callback) = 0; |
66 | 71 |
67 // Requests to start system/kernel tracing. | 72 // Requests to start system/kernel tracing. |
68 virtual void StartSystemTracing() = 0; | 73 virtual void StartSystemTracing() = 0; |
69 | 74 |
70 // Called once RequestStopSystemTracing() is complete. Takes one parameter: | 75 // Called once RequestStopSystemTracing() is complete. Takes one parameter: |
71 // - result: the data collected while tracing was active | 76 // - result: the data collected while tracing was active |
(...skipping 15 matching lines...) Expand all Loading... | |
87 // Create() should be used instead. | 92 // Create() should be used instead. |
88 DebugDaemonClient(); | 93 DebugDaemonClient(); |
89 | 94 |
90 private: | 95 private: |
91 DISALLOW_COPY_AND_ASSIGN(DebugDaemonClient); | 96 DISALLOW_COPY_AND_ASSIGN(DebugDaemonClient); |
92 }; | 97 }; |
93 | 98 |
94 } // namespace chromeos | 99 } // namespace chromeos |
95 | 100 |
96 #endif // CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ | 101 #endif // CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ |
OLD | NEW |