class Version;
}
-#if defined(OS_TIZEN)
-namespace tizen {
-class AppcoreContext;
-}
-#endif
-
namespace xwalk {
namespace application {
return manifest_.get();
}
- // System events
- void SetEvents(const std::set<std::string>& events);
- const std::set<std::string>& GetEvents() const;
-
- bool IsDirty() const { return is_dirty_; }
-
const base::Time& install_time() const { return install_time_; }
// App-related.
// Permission related.
StoredPermission GetPermission(
- std::string& permission_name) const;
+ const std::string& permission_name) const;
bool SetPermission(const std::string& permission_name,
StoredPermission perm);
void ClearPermissions();
PermissionSet GetManifestPermissions() const;
- bool HasMainDocument() const;
- Manifest::PackageType GetPackageType() const;
+ Package::Type GetPackageType() const { return package_type_; }
+
+ bool HasCSPDefined() const;
+
+ bool SetApplicationLocale(const std::string& locale, base::string16* error);
private:
friend class base::RefCountedThreadSafe<ApplicationData>;
// Application's persistent permissions.
StoredPermissionMap permission_map_;
-#if defined(OS_TIZEN)
- scoped_ptr<tizen::AppcoreContext> appcore_context_;
-#endif
+ // The package type, wgt or xpk.
+ Package::Type package_type_;
DISALLOW_COPY_AND_ASSIGN(ApplicationData);
};