OLD | NEW |
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/public/cpp/application/application_impl.h" | 5 #include "mojo/application/public/cpp/application_impl.h" |
6 | 6 |
7 #include "mojo/public/cpp/application/application_delegate.h" | 7 #include "mojo/application/public/cpp/application_delegate.h" |
8 #include "mojo/public/cpp/application/lib/service_registry.h" | 8 #include "mojo/application/public/cpp/lib/service_registry.h" |
9 #include "mojo/public/cpp/bindings/interface_ptr.h" | 9 #include "mojo/public/cpp/bindings/interface_ptr.h" |
10 #include "mojo/public/cpp/environment/logging.h" | 10 #include "mojo/public/cpp/environment/logging.h" |
11 | 11 |
12 namespace mojo { | 12 namespace mojo { |
13 | 13 |
14 class ApplicationImpl::ShellPtrWatcher : public ErrorHandler { | 14 class ApplicationImpl::ShellPtrWatcher : public ErrorHandler { |
15 public: | 15 public: |
16 ShellPtrWatcher(ApplicationImpl* impl) : impl_(impl) {} | 16 ShellPtrWatcher(ApplicationImpl* impl) : impl_(impl) {} |
17 | 17 |
18 ~ShellPtrWatcher() override {} | 18 ~ShellPtrWatcher() override {} |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 } | 108 } |
109 incoming_service_registries_.push_back(registry); | 109 incoming_service_registries_.push_back(registry); |
110 } | 110 } |
111 | 111 |
112 void ApplicationImpl::RequestQuit() { | 112 void ApplicationImpl::RequestQuit() { |
113 delegate_->Quit(); | 113 delegate_->Quit(); |
114 Terminate(); | 114 Terminate(); |
115 } | 115 } |
116 | 116 |
117 } // namespace mojo | 117 } // namespace mojo |
OLD | NEW |