Index: mandoline/services/core_services/application_delegate_factory_notandroid.cc |
diff --git a/mandoline/services/core_services/application_delegate_factory_notandroid.cc b/mandoline/services/core_services/application_delegate_factory_notandroid.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f56a1b4a354e03b0fd60f781c73c1517dda0aaa8 |
--- /dev/null |
+++ b/mandoline/services/core_services/application_delegate_factory_notandroid.cc |
@@ -0,0 +1,26 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "mandoline/services/core_services/application_delegate_factory.h" |
+ |
+#include "components/resource_provider/resource_provider_app.h" |
+#include "components/view_manager/view_manager_app.h" |
+#include "mojo/services/network/network_service_delegate.h" |
+ |
+namespace core_services { |
+ |
+scoped_ptr<mojo::ApplicationDelegate> CreateApplicationDelegateNotAndroid( |
+ const std::string& url) { |
+ if (url == "mojo://network_service/") |
+ return make_scoped_ptr(new mojo::NetworkServiceDelegate); |
+ if (url == "mojo://resource_provider/") { |
+ return make_scoped_ptr( |
+ new resource_provider::ResourceProviderApp("mojo:core_services")); |
+ } |
+ if (url == "mojo://view_manager/") |
+ return make_scoped_ptr(new view_manager::ViewManagerApp); |
+ return nullptr; |
+} |
+ |
+} // namespace core_services |