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