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

Unified Diff: components/arc/arc_service.h

Issue 1596663002: arc-bridge: Introduce the ArcService class (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Addressed feedback Created 4 years, 11 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 | « components/arc/BUILD.gn ('k') | components/arc/arc_service_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/arc_service.h
diff --git a/components/arc/arc_service.h b/components/arc/arc_service.h
new file mode 100644
index 0000000000000000000000000000000000000000..a43e319e3d64fe2b3019351b1bb59ecd647fd119
--- /dev/null
+++ b/components/arc/arc_service.h
@@ -0,0 +1,29 @@
+// Copyright 2016 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 COMPONENTS_ARC_ARC_SERVICE_H_
+#define COMPONENTS_ARC_ARC_SERVICE_H_
+
+#include "base/macros.h"
+
+namespace arc {
+
+class ArcBridgeService;
xiyuan 2016/01/19 18:50:36 nit: seems not used.
Luis Héctor Chávez 2016/01/19 19:17:29 Done.
+
+// Abstract class whose lifecycle will be managed by the ArcServiceManager. It
+// is guaranteed that once the ownership of an ArcService has been transferred
+// to ArcServiceManager, it will outlive the ArcBridgeService, so it is safe to
+// keep a weak reference to it.
+class ArcService {
+ public:
+ ArcService() {}
+ virtual ~ArcService() {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ArcService);
+};
+
+} // namespace arc
+
+#endif // COMPONENTS_ARC_ARC_SERVICE_H_
« no previous file with comments | « components/arc/BUILD.gn ('k') | components/arc/arc_service_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698