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

Side by Side Diff: mojo/shell/static_application_loader.cc

Issue 1565343003: Move mojo/application/public -> mojo/shell/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fetcher
Patch Set: . Created 4 years, 11 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 | « mojo/shell/shell_application_loader.cc ('k') | sql/mojo/BUILD.gn » ('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 "mojo/shell/static_application_loader.h" 5 #include "mojo/shell/static_application_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/application/public/cpp/application_delegate.h"
16 #include "mojo/application/public/cpp/application_runner.h"
17 #include "mojo/application/public/interfaces/application.mojom.h"
18 #include "mojo/public/cpp/bindings/interface_request.h" 15 #include "mojo/public/cpp/bindings/interface_request.h"
16 #include "mojo/shell/public/cpp/application_delegate.h"
17 #include "mojo/shell/public/cpp/application_runner.h"
18 #include "mojo/shell/public/interfaces/application.mojom.h"
19 19
20 namespace mojo { 20 namespace mojo {
21 namespace shell { 21 namespace shell {
22 22
23 namespace { 23 namespace {
24 24
25 class RunnerThread : public base::SimpleThread { 25 class RunnerThread : public base::SimpleThread {
26 public: 26 public:
27 RunnerThread(const GURL& url, 27 RunnerThread(const GURL& url,
28 InterfaceRequest<Application> request, 28 InterfaceRequest<Application> request,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 void StaticApplicationLoader::StopAppThread() { 89 void StaticApplicationLoader::StopAppThread() {
90 thread_->Join(); 90 thread_->Join();
91 thread_.reset(); 91 thread_.reset();
92 if (!quit_callback_.is_null()) 92 if (!quit_callback_.is_null())
93 quit_callback_.Run(); 93 quit_callback_.Run();
94 } 94 }
95 95
96 } // namespace shell 96 } // namespace shell
97 } // namespace mojo 97 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/shell/shell_application_loader.cc ('k') | sql/mojo/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698