1 // Copyright (c) 2014 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_TIZEN_H_
6 #define XWALK_APPLICATION_BROWSER_APPLICATION_SERVICE_TIZEN_H_
10 #include "xwalk/application/browser/application_service.h"
14 namespace application {
16 class ApplicationStorage;
18 // The application service manages launch and termination of the applications.
19 class ApplicationServiceTizen : public ApplicationService {
21 virtual ~ApplicationServiceTizen();
22 // Launch an installed application using application id.
23 Application* LaunchFromAppID(
24 const std::string& id,
25 const Application::LaunchParams& params = Application::LaunchParams());
28 friend class ApplicationService;
29 explicit ApplicationServiceTizen(RuntimeContext* runtime_context);
30 // Note : do not export app storage from this class! We need consider
31 // making ApplicationSystemTizen (owning the storage) instead.
32 scoped_ptr<ApplicationStorage> application_storage_;
35 inline ApplicationServiceTizen* ToApplicationServiceTizen(
36 ApplicationService* service) {
37 return static_cast<ApplicationServiceTizen*>(service);
40 } // namespace application
43 #endif // XWALK_APPLICATION_BROWSER_APPLICATION_SERVICE_TIZEN_H_