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

Unified Diff: chromeos/dbus/upstart_client.h

Issue 2791983004: DBus MediaAnalyticsClient and media_perception pb. (Closed)
Patch Set: Changing the type of a couple vars to const. Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/dbus/proto/media_perception.proto ('k') | chromeos/dbus/upstart_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/upstart_client.h
diff --git a/chromeos/dbus/upstart_client.h b/chromeos/dbus/upstart_client.h
index 3aff513f6fb2ee7edf75262ec64ad75ff66e53be..7f470b75af269be5df5171d6699926b9d133c6cc 100644
--- a/chromeos/dbus/upstart_client.h
+++ b/chromeos/dbus/upstart_client.h
@@ -5,6 +5,8 @@
#ifndef CHROMEOS_DBUS_UPSTART_CLIENT_H_
#define CHROMEOS_DBUS_UPSTART_CLIENT_H_
+#include "base/callback.h"
+#include "base/macros.h"
#include "chromeos/chromeos_export.h"
#include "chromeos/dbus/dbus_client.h"
@@ -17,6 +19,7 @@ class CHROMEOS_EXPORT UpstartClient : public DBusClient {
public:
~UpstartClient() override;
+ using UpstartCallback = base::Callback<void(bool succeeded)>;
// Factory function, creates a new instance and returns ownership.
// For normal usage, access the singleton via DBusThreadManager::Get().
static UpstartClient* Create();
@@ -27,6 +30,12 @@ class CHROMEOS_EXPORT UpstartClient : public DBusClient {
// Restarts authpolicyd.
virtual void RestartAuthPolicyService() = 0;
+ // Starts the media analytics process.
+ virtual void StartMediaAnalytics(const UpstartCallback& callback) = 0;
+
+ // Stops the media analytics process.
+ virtual void StopMediaAnalytics() = 0;
+
protected:
// Create() should be used instead.
UpstartClient();
« no previous file with comments | « chromeos/dbus/proto/media_perception.proto ('k') | chromeos/dbus/upstart_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698