Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / xwalk / application / common / installer / package_installer_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_COMMON_INSTALLER_PACKAGE_INSTALLER_TIZEN_H_
6 #define XWALK_APPLICATION_COMMON_INSTALLER_PACKAGE_INSTALLER_TIZEN_H_
7
8 #include <string>
9
10 #include "xwalk/application/common/installer/package_installer.h"
11
12 namespace xwalk {
13 namespace application {
14
15 class PackageInstallerTizen : public PackageInstaller {
16  public:
17   explicit PackageInstallerTizen(ApplicationStorage* storage);
18
19   void SetQuiet(bool quiet) OVERRIDE;
20   void SetInstallationKey(const std::string& key) OVERRIDE;
21
22  protected:
23   std::string PrepareUninstallationID(const std::string& id) OVERRIDE;
24
25   virtual bool PlatformInstall(ApplicationData* data) OVERRIDE;
26   virtual bool PlatformUninstall(ApplicationData* data) OVERRIDE;
27   virtual bool PlatformUpdate(ApplicationData* data) OVERRIDE;
28
29  private:
30   bool quiet_;
31   std::string key_;
32 };
33
34 }  // namespace application
35 }  // namespace xwalk
36
37 #endif  // XWALK_APPLICATION_COMMON_INSTALLER_PACKAGE_INSTALLER_TIZEN_H_