OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2014 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 // Baseclass for interfaces which only needs a start and a stop. The intention |
| 6 // Is that you can define your feature with a method like: |
| 7 // scoped_ptr<base::LifetimeInterface> StartFoo(arguments); |
| 8 // The caller has no way to interface with the FOO that was created, except for |
| 9 // deleting the pointer, which will stop FOO. |
| 10 |
| 11 #ifndef BASE_MEMORY_LIFETIME_INTERFACE_H_ |
| 12 #define BASE_MEMORY_LIFETIME_INTERFACE_H_ |
| 13 |
| 14 namespace base { |
| 15 |
| 16 class LifetimeInterface { |
| 17 public: |
| 18 virtual ~LifetimeInterface(); |
| 19 }; |
| 20 |
| 21 } // namespace base |
| 22 |
| 23 #endif // BASE_MEMORY_LIFETIME_INTERFACE_H_ |
OLD | NEW |