Lines Matching defs:Origin
28 * Cache API can be attributed to an origin {@link WebStorage.Origin}, however
29 * it is not possible to set per-origin quotas. Note that there can be only
32 * The Web SQL Database API provides storage which is private to a given origin.
34 * to an origin. It is also possible to set per-origin quotas.
58 * currently used by an origin for the JavaScript storage APIs.
59 * An origin comprises the host, scheme and port of a URI.
62 public static class Origin {
68 protected Origin(String origin, long quota, long usage) {
69 mOrigin = origin;
75 protected Origin(String origin, long quota) {
76 mOrigin = origin;
81 protected Origin(String origin) {
82 mOrigin = origin;
86 * Gets the string representation of this origin.
88 * @return the string representation of this origin
90 // An origin string is created using WebCore::SecurityOrigin::toString().
100 * Gets the quota for this origin, for the Web SQL Database API, in
101 * bytes. If this origin does not use the Web SQL Database API, this
111 * Gets the total amount of storage currently being used by this origin,
137 * a map, of type {@code Map<String, WebStorage.Origin>}, from the string
138 * representation of the origin to a {@link WebStorage.Origin} object.
146 * Cache and Web SQL Database APIs by the given origin. The amount is given
147 * in bytes and the origin is specified using its string representation.
151 public void getUsageForOrigin(String origin, ValueCallback<Long> callback) {
156 * Gets the storage quota for the Web SQL Database API for the given origin.
157 * The quota is given in bytes and the origin is specified using its string
160 * enforced on a per-origin basis for the Application Cache API.
162 public void getQuotaForOrigin(String origin, ValueCallback<Long> callback) {
167 * Sets the storage quota for the Web SQL Database API for the given origin.
168 * The quota is specified in bytes and the origin is specified using its string
169 * representation. Note that a quota is not enforced on a per-origin basis
171 * @deprecated Controlling quota per-origin will not be supported in future.
174 public void setQuotaForOrigin(String origin, long quota) {
180 * Web SQL Database APIs by the given origin. The origin is specified using
183 public void deleteOrigin(String origin) {