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_loader.h" | 5 #include "mojo/shell/shell_application_loader.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "mojo/shell/public/cpp/application_impl.h" | 9 #include "mojo/shell/public/cpp/shell_connection.h" |
10 #include "mojo/shell/shell_application_delegate.h" | 10 #include "mojo/shell/shell_application_delegate.h" |
11 | 11 |
12 namespace mojo { | 12 namespace mojo { |
13 namespace shell { | 13 namespace shell { |
14 | 14 |
15 ShellApplicationLoader::ShellApplicationLoader(ApplicationManager* manager) | 15 ShellApplicationLoader::ShellApplicationLoader(ApplicationManager* manager) |
16 : manager_(manager) {} | 16 : manager_(manager) {} |
17 ShellApplicationLoader::~ShellApplicationLoader() {} | 17 ShellApplicationLoader::~ShellApplicationLoader() {} |
18 | 18 |
19 void ShellApplicationLoader::Load( | 19 void ShellApplicationLoader::Load( |
20 const GURL& url, | 20 const GURL& url, |
21 InterfaceRequest<mojom::Application> application_request) { | 21 InterfaceRequest<mojom::ShellClient> request) { |
22 DCHECK(application_request.is_pending()); | 22 DCHECK(request.is_pending()); |
23 app_.reset(new ApplicationImpl(new ShellApplicationDelegate(manager_), | 23 shell_connection_.reset(new ShellConnection( |
24 std::move(application_request))); | 24 new ShellApplicationDelegate(manager_), std::move(request))); |
25 } | 25 } |
26 | 26 |
27 } // namespace shell | 27 } // namespace shell |
28 } // namespace mojo | 28 } // namespace mojo |
OLD | NEW |