OLD | NEW |
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/shell_application_delegate.h" | 5 #include "mojo/shell/shell_application_delegate.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/process/process.h" | 11 #include "base/process/process.h" |
12 #include "mojo/application/public/cpp/application_connection.h" | |
13 #include "mojo/shell/application_manager.h" | 12 #include "mojo/shell/application_manager.h" |
| 13 #include "mojo/shell/public/cpp/application_connection.h" |
14 #include "third_party/mojo/src/mojo/edk/embedder/embedder.h" | 14 #include "third_party/mojo/src/mojo/edk/embedder/embedder.h" |
15 | 15 |
16 namespace mojo { | 16 namespace mojo { |
17 namespace shell { | 17 namespace shell { |
18 | 18 |
19 ShellApplicationDelegate::ShellApplicationDelegate( | 19 ShellApplicationDelegate::ShellApplicationDelegate( |
20 mojo::shell::ApplicationManager* manager) | 20 mojo::shell::ApplicationManager* manager) |
21 : manager_(manager) {} | 21 : manager_(manager) {} |
22 ShellApplicationDelegate::~ShellApplicationDelegate() {} | 22 ShellApplicationDelegate::~ShellApplicationDelegate() {} |
23 | 23 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 embedder::ChildProcessLaunched(process.Handle(), std::move(platform_pipe)); | 81 embedder::ChildProcessLaunched(process.Handle(), std::move(platform_pipe)); |
82 } | 82 } |
83 | 83 |
84 void ShellApplicationDelegate::AddListener( | 84 void ShellApplicationDelegate::AddListener( |
85 mojom::ApplicationManagerListenerPtr listener) { | 85 mojom::ApplicationManagerListenerPtr listener) { |
86 manager_->AddListener(std::move(listener)); | 86 manager_->AddListener(std::move(listener)); |
87 } | 87 } |
88 | 88 |
89 } // namespace shell | 89 } // namespace shell |
90 } // namespace mojo | 90 } // namespace mojo |
OLD | NEW |