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_COMMON_APPLICATION_STORAGE_IMPL_TIZEN_H_
6 #define XWALK_APPLICATION_COMMON_APPLICATION_STORAGE_IMPL_TIZEN_H_
13 #include "base/files/file_path.h"
14 #include "sql/connection.h"
15 #include "sql/meta_table.h"
16 #include "xwalk/application/common/application_data.h"
19 namespace application {
21 // The Sqlite backend implementation of ApplicationStorage.
22 class ApplicationStorageImpl {
24 explicit ApplicationStorageImpl(const base::FilePath& path);
25 ~ApplicationStorageImpl();
27 bool AddApplication(const ApplicationData* application,
28 const base::Time& install_time);
29 bool RemoveApplication(const std::string& key);
30 bool ContainsApplication(const std::string& key);
31 bool UpdateApplication(ApplicationData* application,
32 const base::Time& install_time);
35 scoped_refptr<ApplicationData> GetApplicationData(const std::string& id);
37 bool GetInstalledApplicationIDs(
38 std::vector<std::string>& app_ids); // NOLINT
41 } // namespace application
44 #endif // XWALK_APPLICATION_COMMON_APPLICATION_STORAGE_IMPL_TIZEN_H_