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/shell/application_manager.h" | 12 #include "mojo/shell/application_manager.h" |
13 #include "mojo/shell/public/cpp/connection.h" | 13 #include "mojo/shell/public/cpp/connection.h" |
14 #include "third_party/mojo/src/mojo/edk/embedder/embedder.h" | |
15 | 14 |
16 namespace mojo { | 15 namespace mojo { |
17 namespace shell { | 16 namespace shell { |
18 | 17 |
19 ShellApplicationDelegate::ShellApplicationDelegate( | 18 ShellApplicationDelegate::ShellApplicationDelegate( |
20 mojo::shell::ApplicationManager* manager) | 19 mojo::shell::ApplicationManager* manager) |
21 : manager_(manager) {} | 20 : manager_(manager) {} |
22 ShellApplicationDelegate::~ShellApplicationDelegate() {} | 21 ShellApplicationDelegate::~ShellApplicationDelegate() {} |
23 | 22 |
24 void ShellApplicationDelegate::Initialize(Shell* shell, const std::string& url, | 23 void ShellApplicationDelegate::Initialize(Shell* shell, const std::string& url, |
(...skipping 18 matching lines...) Expand all Loading... |
43 std::move(filter), std::move(pid_receiver)); | 42 std::move(filter), std::move(pid_receiver)); |
44 } | 43 } |
45 | 44 |
46 void ShellApplicationDelegate::AddListener( | 45 void ShellApplicationDelegate::AddListener( |
47 mojom::ApplicationManagerListenerPtr listener) { | 46 mojom::ApplicationManagerListenerPtr listener) { |
48 manager_->AddListener(std::move(listener)); | 47 manager_->AddListener(std::move(listener)); |
49 } | 48 } |
50 | 49 |
51 } // namespace shell | 50 } // namespace shell |
52 } // namespace mojo | 51 } // namespace mojo |
OLD | NEW |