Index: mojo/shell/keep_alive.h |
diff --git a/mojo/shell/keep_alive.h b/mojo/shell/keep_alive.h |
deleted file mode 100644 |
index d9b61275ca8ecf6e19bd61626845dfcb056648aa..0000000000000000000000000000000000000000 |
--- a/mojo/shell/keep_alive.h |
+++ /dev/null |
@@ -1,44 +0,0 @@ |
-// Copyright 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. |
- |
-#ifndef MOJO_SHELL_KEEP_ALIVE_H_ |
-#define MOJO_SHELL_KEEP_ALIVE_H_ |
- |
-#include "base/basictypes.h" |
- |
-namespace mojo { |
-namespace shell { |
- |
-class Context; |
-class KeepAlive; |
- |
-class KeepAliveCounter { |
- public: |
- KeepAliveCounter() : count_(0) { |
- } |
- private: |
- friend class KeepAlive; |
- int count_; |
-}; |
- |
-// Instantiate this class to extend the lifetime of the thread associated |
-// with |context| (i.e., the shell's UI thread). Must only be used from |
-// the shell's UI thread. |
-class KeepAlive { |
- public: |
- explicit KeepAlive(Context* context); |
- ~KeepAlive(); |
- |
- private: |
- static void MaybeQuit(Context* context); |
- |
- Context* context_; |
- |
- DISALLOW_COPY_AND_ASSIGN(KeepAlive); |
-}; |
- |
-} // namespace shell |
-} // namespace mojo |
- |
-#endif // MOJO_SHELL_KEEP_ALIVE_H_ |