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

Unified Diff: components/arc/standalone/service_helper.h

Issue 2384173004: arc: Remove components/arc/standalone (Closed)
Patch Set: Rebased to ToT Created 4 years, 2 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: 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_
« no previous file with comments | « components/arc/standalone/arc_standalone_bridge_runner.cc ('k') | components/arc/standalone/service_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698