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

Unified Diff: mojo/shell/app_child_process_host.cc

Issue 775343004: Move //mojo/shell to //shell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/app_child_process_host.h ('k') | mojo/shell/child_process.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/app_child_process_host.cc
diff --git a/mojo/shell/app_child_process_host.cc b/mojo/shell/app_child_process_host.cc
deleted file mode 100644
index 8da47727801806e73921f8039cc80f9af3150499..0000000000000000000000000000000000000000
--- a/mojo/shell/app_child_process_host.cc
+++ /dev/null
@@ -1,63 +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.
-
-#include "mojo/shell/app_child_process_host.h"
-
-#include "base/bind.h"
-#include "base/logging.h"
-#include "base/message_loop/message_loop.h"
-#include "mojo/edk/embedder/embedder.h"
-#include "mojo/public/cpp/system/core.h"
-#include "mojo/shell/context.h"
-#include "mojo/shell/task_runners.h"
-
-namespace mojo {
-namespace shell {
-
-AppChildProcessHost::AppChildProcessHost(
- Context* context,
- AppChildControllerClient* controller_client)
- : ChildProcessHost(context, this, ChildProcess::TYPE_APP),
- controller_client_(controller_client),
- channel_info_(NULL) {
-}
-
-AppChildProcessHost::~AppChildProcessHost() {
-}
-
-void AppChildProcessHost::WillStart() {
- DCHECK(platform_channel()->is_valid());
-
- mojo::ScopedMessagePipeHandle handle(embedder::CreateChannel(
- platform_channel()->Pass(),
- context()->task_runners()->io_runner(),
- base::Bind(&AppChildProcessHost::DidCreateChannel,
- base::Unretained(this)),
- base::MessageLoop::current()->message_loop_proxy()));
-
- controller_.Bind(handle.Pass());
- controller_.set_client(controller_client_);
-}
-
-void AppChildProcessHost::DidStart(bool success) {
- DVLOG(2) << "AppChildProcessHost::DidStart()";
-
- if (!success) {
- LOG(ERROR) << "Failed to start app child process";
- controller_client_->AppCompleted(MOJO_RESULT_UNKNOWN);
- return;
- }
-}
-
-// Callback for |embedder::CreateChannel()|.
-void AppChildProcessHost::DidCreateChannel(
- embedder::ChannelInfo* channel_info) {
- DVLOG(2) << "AppChildProcessHost::DidCreateChannel()";
-
- CHECK(channel_info);
- channel_info_ = channel_info;
-}
-
-} // namespace shell
-} // namespace mojo
« no previous file with comments | « mojo/shell/app_child_process_host.h ('k') | mojo/shell/child_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698