Upstream version 9.38.204.0
[platform/framework/web/crosswalk.git] / src / xwalk / application / browser / application_service_tizen.h
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.
4
5 #ifndef XWALK_APPLICATION_BROWSER_APPLICATION_SERVICE_TIZEN_H_
6 #define XWALK_APPLICATION_BROWSER_APPLICATION_SERVICE_TIZEN_H_
7
8 #include <string>
9
10 #include "xwalk/application/browser/application_service.h"
11
12 namespace xwalk {
13
14 namespace application {
15
16 class ApplicationStorage;
17
18 // The application service manages launch and termination of the applications.
19 class ApplicationServiceTizen : public ApplicationService {
20  public:
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());
26
27  private:
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_;
33 };
34
35 inline ApplicationServiceTizen* ToApplicationServiceTizen(
36     ApplicationService* service) {
37   return static_cast<ApplicationServiceTizen*>(service);
38 }
39
40 }  // namespace application
41 }  // namespace xwalk
42
43 #endif  // XWALK_APPLICATION_BROWSER_APPLICATION_SERVICE_TIZEN_H_