Index: components/arc/standalone/service_helper.h |
diff --git a/components/arc/standalone/service_helper.h b/components/arc/standalone/service_helper.h |
deleted file mode 100644 |
index 3b6b28e42de9bc77ef14e48d55f9c94daa0655e1..0000000000000000000000000000000000000000 |
--- a/components/arc/standalone/service_helper.h |
+++ /dev/null |
@@ -1,46 +0,0 @@ |
-// Copyright 2016 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 COMPONENTS_ARC_STANDALONE_SERVICE_HELPER_H_ |
-#define COMPONENTS_ARC_STANDALONE_SERVICE_HELPER_H_ |
- |
-#include <signal.h> |
- |
-#include <memory> |
- |
-#include "base/files/file_descriptor_watcher_posix.h" |
-#include "base/files/scoped_file.h" |
- |
-namespace arc { |
- |
-// Helper class to set up service-like processes. |
-class ServiceHelper { |
- public: |
- ServiceHelper(); |
- ~ServiceHelper(); |
- |
- // Must be called after message loop instantiation. |
- void Init(const base::Closure& closure); |
- |
- private: |
- void OnFileCanReadWithoutBlocking(); |
- |
- static void TerminationHandler(int /* signum */); |
- |
- // Static variable to guarantee instantiated only once per process. |
- static ServiceHelper* self_; |
- |
- base::Closure closure_; |
- base::ScopedFD read_fd_; |
- base::ScopedFD write_fd_; |
- std::unique_ptr<base::FileDescriptorWatcher::Controller> watch_controller_; |
- struct sigaction old_sigint_; |
- struct sigaction old_sigterm_; |
- |
- DISALLOW_COPY_AND_ASSIGN(ServiceHelper); |
-}; |
- |
-} // namespace arc |
- |
-#endif // COMPONENTS_ARC_STANDALONE_SERVICE_HELPER_H_ |