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

Unified Diff: chromeos/dbus/arc_instance_client.h

Issue 1421023002: Remove the ARC Bridge Service (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Created 5 years, 2 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
Index: chromeos/dbus/arc_instance_client.h
diff --git a/chromeos/dbus/arc_instance_client.h b/chromeos/dbus/arc_instance_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..b4108599f1e23b28757f18defcfdd44a9d749969
--- /dev/null
+++ b/chromeos/dbus/arc_instance_client.h
@@ -0,0 +1,47 @@
+// Copyright (c) 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROMEOS_DBUS_ARC_INSTANCE_CLIENT_H_
+#define CHROMEOS_DBUS_ARC_INSTANCE_CLIENT_H_
+
+#include "base/basictypes.h"
+#include "chromeos/chromeos_export.h"
+#include "chromeos/dbus/dbus_client.h"
+#include "chromeos/dbus/dbus_method_call_status.h"
+
+namespace dbus {
+class ObjectPath;
+}
+
+namespace chromeos {
+
+// Client for the Arc Instance Service
+class CHROMEOS_EXPORT ArcInstanceClient : public DBusClient {
+ public:
+ ~ArcInstanceClient() override;
+
+ // Factory function, creates a new instance and returns ownership.
+ // For normal usage, access the singleton via DBusThreadManager::Get().
+ static ArcInstanceClient* Create();
+
+ // Starts an instance of ARC. |callback| is called after the method call
+ // succeeds.
+ virtual void StartInstance(const std::string& socket_path,
+ const BoolDBusMethodCallback& callback) = 0;
+
+ // Stops the currently running instance of ARC. |callback| is called after
+ // the method call is processed.
+ virtual void StopInstance(const VoidDBusMethodCallback& callback) = 0;
+
+ protected:
+ // Create() should be used instead.
+ ArcInstanceClient();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ArcInstanceClient);
+};
+
+} // namespace chromeos
+
+#endif // CHROMEOS_DBUS_ARC_INSTANCE_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698