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

Side by Side Diff: content/common/mojo/static_loader.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
« no previous file with comments | « content/common/mojo/static_loader.h ('k') | content/common/process_control.mojom » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "content/common/mojo/static_loader.h" 5 #include "content/common/mojo/static_loader.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/task_runner.h" 12 #include "base/task_runner.h"
13 #include "base/thread_task_runner_handle.h" 13 #include "base/thread_task_runner_handle.h"
14 #include "base/threading/simple_thread.h" 14 #include "base/threading/simple_thread.h"
15 #include "mojo/public/cpp/bindings/interface_request.h" 15 #include "mojo/public/cpp/bindings/interface_request.h"
16 #include "mojo/shell/public/cpp/application_runner.h" 16 #include "services/shell/public/cpp/application_runner.h"
17 #include "mojo/shell/public/cpp/shell_client.h" 17 #include "services/shell/public/cpp/shell_client.h"
18 #include "mojo/shell/public/interfaces/shell_client.mojom.h" 18 #include "services/shell/public/interfaces/shell_client.mojom.h"
19 19
20 namespace content { 20 namespace content {
21 21
22 namespace { 22 namespace {
23 23
24 class RunnerThread : public base::SimpleThread { 24 class RunnerThread : public base::SimpleThread {
25 public: 25 public:
26 RunnerThread(const std::string& name, 26 RunnerThread(const std::string& name,
27 mojo::shell::mojom::ShellClientRequest request, 27 mojo::shell::mojom::ShellClientRequest request,
28 scoped_refptr<base::TaskRunner> exit_task_runner, 28 scoped_refptr<base::TaskRunner> exit_task_runner,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 } 84 }
85 85
86 void StaticLoader::StopAppThread() { 86 void StaticLoader::StopAppThread() {
87 thread_->Join(); 87 thread_->Join();
88 thread_.reset(); 88 thread_.reset();
89 if (!quit_callback_.is_null()) 89 if (!quit_callback_.is_null())
90 quit_callback_.Run(); 90 quit_callback_.Run();
91 } 91 }
92 92
93 } // namespace content 93 } // namespace content
OLDNEW
« no previous file with comments | « content/common/mojo/static_loader.h ('k') | content/common/process_control.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698