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

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

Issue 1468173003: [Tracing Clock Sync] Add TracingAgent interface in Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review fix Created 5 years 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
« no previous file with comments | « chromeos/dbus/debug_daemon_client.cc ('k') | chromeos/dbus/fake_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FAKE_DEBUG_DAEMON_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "chromeos/dbus/debug_daemon_client.h" 12 #include "chromeos/dbus/debug_daemon_client.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 15
16 // The DebugDaemonClient implementation used on Linux desktop, 16 // The DebugDaemonClient implementation used on Linux desktop,
17 // which does nothing. 17 // which does nothing.
18 class CHROMEOS_EXPORT FakeDebugDaemonClient : public DebugDaemonClient { 18 class CHROMEOS_EXPORT FakeDebugDaemonClient : public DebugDaemonClient {
19 public: 19 public:
20 FakeDebugDaemonClient(); 20 FakeDebugDaemonClient();
21 ~FakeDebugDaemonClient() override; 21 ~FakeDebugDaemonClient() override;
22 22
23 void Init(dbus::Bus* bus) override; 23 void Init(dbus::Bus* bus) override;
24 void DumpDebugLogs(bool is_compressed, 24 void DumpDebugLogs(bool is_compressed,
25 base::File file, 25 base::File file,
26 scoped_refptr<base::TaskRunner> task_runner, 26 scoped_refptr<base::TaskRunner> task_runner,
27 const GetDebugLogsCallback& callback) override; 27 const GetDebugLogsCallback& callback) override;
28 void SetDebugMode(const std::string& subsystem, 28 void SetDebugMode(const std::string& subsystem,
29 const SetDebugModeCallback& callback) override; 29 const SetDebugModeCallback& callback) override;
30 void StartSystemTracing() override; 30 std::string GetTracingAgentName() override;
31 bool RequestStopSystemTracing( 31 std::string GetTraceEventLabel() override;
32 scoped_refptr<base::TaskRunner> task_runner, 32 bool StartAgentTracing(
33 const StopSystemTracingCallback& callback) override; 33 const base::trace_event::TraceConfig& trace_config) override;
34 void StopAgentTracing(const StopAgentTracingCallback& callback) override;
35 void SetStopAgentTracingTaskRunner(
36 scoped_refptr<base::TaskRunner> task_runner) override;
34 void GetRoutes(bool numeric, 37 void GetRoutes(bool numeric,
35 bool ipv6, 38 bool ipv6,
36 const GetRoutesCallback& callback) override; 39 const GetRoutesCallback& callback) override;
37 void GetNetworkStatus(const GetNetworkStatusCallback& callback) override; 40 void GetNetworkStatus(const GetNetworkStatusCallback& callback) override;
38 void GetModemStatus(const GetModemStatusCallback& callback) override; 41 void GetModemStatus(const GetModemStatusCallback& callback) override;
39 void GetWiMaxStatus(const GetWiMaxStatusCallback& callback) override; 42 void GetWiMaxStatus(const GetWiMaxStatusCallback& callback) override;
40 void GetNetworkInterfaces( 43 void GetNetworkInterfaces(
41 const GetNetworkInterfacesCallback& callback) override; 44 const GetNetworkInterfacesCallback& callback) override;
42 void GetPerfOutput(uint32_t duration, 45 void GetPerfOutput(uint32_t duration,
43 const std::vector<std::string>& perf_args, 46 const std::vector<std::string>& perf_args,
(...skipping 30 matching lines...) Expand all
74 bool service_is_available_; 77 bool service_is_available_;
75 std::vector<WaitForServiceToBeAvailableCallback> 78 std::vector<WaitForServiceToBeAvailableCallback>
76 pending_wait_for_service_to_be_available_callbacks_; 79 pending_wait_for_service_to_be_available_callbacks_;
77 80
78 DISALLOW_COPY_AND_ASSIGN(FakeDebugDaemonClient); 81 DISALLOW_COPY_AND_ASSIGN(FakeDebugDaemonClient);
79 }; 82 };
80 83
81 } // namespace chromeos 84 } // namespace chromeos
82 85
83 #endif // CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_ 86 #endif // CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/debug_daemon_client.cc ('k') | chromeos/dbus/fake_debug_daemon_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698