| Index: base/memory/lifetime_interface.h
|
| diff --git a/base/memory/lifetime_interface.h b/base/memory/lifetime_interface.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..103c681b141067001a8aeee081db825b56298902
|
| --- /dev/null
|
| +++ b/base/memory/lifetime_interface.h
|
| @@ -0,0 +1,23 @@
|
| +// Copyright (c) 2014 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.
|
| +
|
| +// Baseclass for interfaces which only needs a start and a stop. The intention
|
| +// Is that you can define your feature with a method like:
|
| +// scoped_ptr<base::LifetimeInterface> StartFoo(arguments);
|
| +// The caller has no way to interface with the FOO that was created, except for
|
| +// deleting the pointer, which will stop FOO.
|
| +
|
| +#ifndef BASE_MEMORY_LIFETIME_INTERFACE_H_
|
| +#define BASE_MEMORY_LIFETIME_INTERFACE_H_
|
| +
|
| +namespace base {
|
| +
|
| +class LifetimeInterface {
|
| + public:
|
| + virtual ~LifetimeInterface();
|
| +};
|
| +
|
| +} // namespace base
|
| +
|
| +#endif // BASE_MEMORY_LIFETIME_INTERFACE_H_
|
|
|