1 // Copyright (c) 2013 Intel Corporation. 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.
5 #ifndef XWALK_APPLICATION_BROWSER_APPLICATION_SERVICE_PROVIDER_LINUX_H_
6 #define XWALK_APPLICATION_BROWSER_APPLICATION_SERVICE_PROVIDER_LINUX_H_
9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h"
17 namespace application {
19 class ApplicationService;
20 class ApplicationStorage;
21 class InstalledApplicationsManager;
22 class RunningApplicationsManager;
24 // Uses a D-Bus service named "org.crosswalkproject.Runtime1" to expose
25 // application management and launch functionality from ApplicationService.
26 class ApplicationServiceProviderLinux {
28 ApplicationServiceProviderLinux(ApplicationService* app_service,
29 ApplicationStorage* app_storage,
30 scoped_refptr<dbus::Bus> session_bus);
31 virtual ~ApplicationServiceProviderLinux();
34 void OnServiceNameExported(const std::string& service_name, bool success);
36 // TODO(cmarcelo): Remove this once we expose real objects.
37 void ExportTestObject();
39 scoped_refptr<dbus::Bus> session_bus_;
40 scoped_ptr<InstalledApplicationsManager> installed_apps_;
41 scoped_ptr<RunningApplicationsManager> running_apps_;
44 } // namespace application
47 #endif // XWALK_APPLICATION_BROWSER_APPLICATION_SERVICE_PROVIDER_LINUX_H_