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

Unified Diff: mojo/shell/runner/host/mach_broker.cc

Issue 1877753003: Move mojo\shell to services\shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@62scan
Patch Set: . Created 4 years, 8 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
« no previous file with comments | « mojo/shell/runner/host/mach_broker.h ('k') | mojo/shell/runner/host/native_application_support.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/runner/host/mach_broker.cc
diff --git a/mojo/shell/runner/host/mach_broker.cc b/mojo/shell/runner/host/mach_broker.cc
deleted file mode 100644
index 8b992793a4e3768070a6fcf5af83e241d00999a5..0000000000000000000000000000000000000000
--- a/mojo/shell/runner/host/mach_broker.cc
+++ /dev/null
@@ -1,45 +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.
-
-#include "mojo/shell/runner/host/mach_broker.h"
-
-#include "base/logging.h"
-#include "base/memory/singleton.h"
-
-namespace mojo {
-namespace shell {
-
-namespace {
-const char kBootstrapPortName[] = "mojo_shell";
-}
-
-// static
-void MachBroker::SendTaskPortToParent() {
- bool result = base::MachPortBroker::ChildSendTaskPortToParent(
- kBootstrapPortName);
- DCHECK(result);
-}
-
-// static
-MachBroker* MachBroker::GetInstance() {
- return base::Singleton<MachBroker>::get();
-}
-
-MachBroker::MachBroker() : broker_(kBootstrapPortName) {
- bool result = broker_.Init();
- DCHECK(result);
-}
-
-MachBroker::~MachBroker() {}
-
-void MachBroker::ExpectPid(base::ProcessHandle pid) {
- broker_.AddPlaceholderForPid(pid);
-}
-
-void MachBroker::RemovePid(base::ProcessHandle pid) {
- broker_.InvalidatePid(pid);
-}
-
-} // namespace shell
-} // namespace mojo
« no previous file with comments | « mojo/shell/runner/host/mach_broker.h ('k') | mojo/shell/runner/host/native_application_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698