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

Side by Side Diff: services/shell/runner/host/child_process_base.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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mojo/shell/runner/host/child_process_base.h" 5 #include "services/shell/runner/host/child_process_base.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/single_thread_task_runner.h" 11 #include "base/single_thread_task_runner.h"
12 #include "base/synchronization/waitable_event.h" 12 #include "base/synchronization/waitable_event.h"
13 #include "base/threading/thread.h" 13 #include "base/threading/thread.h"
14 #include "mojo/edk/embedder/embedder.h" 14 #include "mojo/edk/embedder/embedder.h"
15 #include "mojo/edk/embedder/process_delegate.h" 15 #include "mojo/edk/embedder/process_delegate.h"
16 #include "mojo/shell/runner/common/client_util.h" 16 #include "services/shell/runner/common/client_util.h"
17 17
18 namespace mojo { 18 namespace mojo {
19 namespace shell { 19 namespace shell {
20 20
21 namespace { 21 namespace {
22 22
23 // Should be created and initialized on the main thread and kept alive as long 23 // Should be created and initialized on the main thread and kept alive as long
24 // a Mojo application is running in the current process. 24 // a Mojo application is running in the current process.
25 class ScopedAppContext : public edk::ProcessDelegate { 25 class ScopedAppContext : public edk::ProcessDelegate {
26 public: 26 public:
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 void ChildProcessMain(const RunCallback& callback) { 64 void ChildProcessMain(const RunCallback& callback) {
65 DCHECK(!base::MessageLoop::current()); 65 DCHECK(!base::MessageLoop::current());
66 66
67 ScopedAppContext app_context; 67 ScopedAppContext app_context;
68 callback.Run(GetShellClientRequestFromCommandLine()); 68 callback.Run(GetShellClientRequestFromCommandLine());
69 } 69 }
70 70
71 } // namespace shell 71 } // namespace shell
72 } // namespace mojo 72 } // namespace mojo
OLDNEW
« no previous file with comments | « services/shell/runner/host/child_process_base.h ('k') | services/shell/runner/host/child_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698