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 "mandoline/services/core_services/application_delegate_factory.h" | 5 #include "mandoline/services/core_services/application_delegate_factory.h" |
6 | 6 |
7 #include "components/mus/view_manager_app.h" | 7 #include "components/mus/mus_app.h" |
8 #include "components/resource_provider/resource_provider_app.h" | 8 #include "components/resource_provider/resource_provider_app.h" |
9 #include "mojo/services/network/network_service_delegate.h" | 9 #include "mojo/services/network/network_service_delegate.h" |
10 | 10 |
11 namespace core_services { | 11 namespace core_services { |
12 | 12 |
13 scoped_ptr<mojo::ApplicationDelegate> CreateApplicationDelegateNotAndroid( | 13 scoped_ptr<mojo::ApplicationDelegate> CreateApplicationDelegateNotAndroid( |
14 const std::string& url) { | 14 const std::string& url) { |
15 if (url == "mojo://network_service/") | 15 if (url == "mojo://network_service/") |
16 return make_scoped_ptr(new mojo::NetworkServiceDelegate); | 16 return make_scoped_ptr(new mojo::NetworkServiceDelegate); |
17 if (url == "mojo://resource_provider/") { | 17 if (url == "mojo://resource_provider/") { |
18 return make_scoped_ptr( | 18 return make_scoped_ptr( |
19 new resource_provider::ResourceProviderApp("mojo:core_services")); | 19 new resource_provider::ResourceProviderApp("mojo:core_services")); |
20 } | 20 } |
21 if (url == "mojo://mus/") | 21 if (url == "mojo://mus/") |
22 return make_scoped_ptr(new view_manager::ViewManagerApp); | 22 return make_scoped_ptr(new mus::MandolineUIServicesApp); |
23 return nullptr; | 23 return nullptr; |
24 } | 24 } |
25 | 25 |
26 } // namespace core_services | 26 } // namespace core_services |
OLD | NEW |