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

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

Issue 329853010: Additional methods for chrome.logPrivate API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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
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/files/file.h" 9 #include "base/files/file.h"
10 #include "base/memory/ref_counted_memory.h" 10 #include "base/memory/ref_counted_memory.h"
(...skipping 11 matching lines...) Expand all
22 // DebugDaemonClient is used to communicate with the debug daemon. 22 // DebugDaemonClient is used to communicate with the debug daemon.
23 class CHROMEOS_EXPORT DebugDaemonClient : public DBusClient { 23 class CHROMEOS_EXPORT DebugDaemonClient : public DBusClient {
24 public: 24 public:
25 virtual ~DebugDaemonClient(); 25 virtual ~DebugDaemonClient();
26 26
27 // Called once GetDebugLogs() is complete. Takes one parameter: 27 // Called once GetDebugLogs() is complete. Takes one parameter:
28 // - succeeded: was the logs stored successfully. 28 // - succeeded: was the logs stored successfully.
29 typedef base::Callback<void(bool succeeded)> GetDebugLogsCallback; 29 typedef base::Callback<void(bool succeeded)> GetDebugLogsCallback;
30 30
31 // Requests to store debug logs into |file| and calls |callback| 31 // Requests to store debug logs into |file| and calls |callback|
32 // when completed. Debug logs will be stored in the .tgz format. 32 // when completed. Debug logs will be stored in the .tgz if
33 virtual void GetDebugLogs(base::File file, 33 // |is_compressed| is true, otherwise in logs will be stored in .tar format.
34 const GetDebugLogsCallback& callback) = 0; 34 virtual void DumpDebugLogs(bool is_compressed,
35 base::File file,
36 const GetDebugLogsCallback& callback) = 0;
35 37
36 // Called once SetDebugMode() is complete. Takes one parameter: 38 // Called once SetDebugMode() is complete. Takes one parameter:
37 // - succeeded: debug mode was changed successfully. 39 // - succeeded: debug mode was changed successfully.
38 typedef base::Callback<void(bool succeeded)> SetDebugModeCallback; 40 typedef base::Callback<void(bool succeeded)> SetDebugModeCallback;
39 41
40 // Requests to change debug mode to given |subsystem| and calls 42 // Requests to change debug mode to given |subsystem| and calls
41 // |callback| when completed. |subsystem| should be one of the 43 // |callback| when completed. |subsystem| should be one of the
42 // following: "wifi", "ethernet", "cellular" or "none". 44 // following: "wifi", "ethernet", "cellular" or "none".
43 virtual void SetDebugMode(const std::string& subsystem, 45 virtual void SetDebugMode(const std::string& subsystem,
44 const SetDebugModeCallback& callback) = 0; 46 const SetDebugModeCallback& callback) = 0;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // Create() should be used instead. 153 // Create() should be used instead.
152 DebugDaemonClient(); 154 DebugDaemonClient();
153 155
154 private: 156 private:
155 DISALLOW_COPY_AND_ASSIGN(DebugDaemonClient); 157 DISALLOW_COPY_AND_ASSIGN(DebugDaemonClient);
156 }; 158 };
157 159
158 } // namespace chromeos 160 } // namespace chromeos
159 161
160 #endif // CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ 162 #endif // CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/log_private/dump_logs/test.js ('k') | chromeos/dbus/debug_daemon_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698