Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_ARC_ARC_SERVICE_H_ | |
| 6 #define COMPONENTS_ARC_ARC_SERVICE_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 | |
| 10 namespace arc { | |
| 11 | |
| 12 class ArcBridgeService; | |
| 13 | |
| 14 // Abstract class whose lifecycle will be managed by the ArcServiceManager. It | |
| 15 // is guaranteed that once the ownership of an ArcService has been transferred | |
| 16 // to ArcServiceManager, it will outlive the ArcBridgeService, so it is safe to | |
| 17 // keep a weak reference to it. | |
| 18 class ArcService { | |
| 19 public: | |
| 20 ArcService() {} | |
|
hidehiko
2016/01/18 01:26:45
Can we move {Add,Remove}Observer(this) to this cla
Luis Héctor Chávez
2016/01/19 17:43:54
The problem with moving AddObserver(this) to this
hidehiko
2016/01/20 16:04:50
My understanding is that the goal of this CL is to
Luis Héctor Chávez
2016/01/20 18:40:46
Turns out this doesn't work in C++: https://isocpp
| |
| 21 virtual ~ArcService() {} | |
| 22 | |
| 23 private: | |
| 24 DISALLOW_COPY_AND_ASSIGN(ArcService); | |
| 25 }; | |
| 26 | |
| 27 } // namespace arc | |
| 28 | |
| 29 #endif // COMPONENTS_ARC_ARC_SERVICE_H_ | |
| OLD | NEW |