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

Unified Diff: base/memory/lifetime_interface.h

Issue 566243005: Cast: Allow extension to control wifi options on windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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: 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_

Powered by Google App Engine
This is Rietveld 408576698