| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| |
| |
| goog.provide('blink.mojom.StorageAreaObserver'); |
| goog.provide('blink.mojom.StorageAreaObserverImpl'); |
| goog.provide('blink.mojom.StorageAreaObserverPtr'); |
| |
| |
| |
| /** |
| * @const |
| * @type { !mojo.Interface }; |
| */ |
| blink.mojom.StorageAreaObserver; |
| |
| /** @interface */ |
| blink.mojom.StorageAreaObserverImpl = class { |
| /** |
| * @param { !Array<number> } key |
| * @param { !Array<number> } value |
| * @param { !string } source |
| */ |
| keyAdded(key, value, source) {} |
| /** |
| * @param { !Array<number> } key |
| * @param { !Array<number> } newValue |
| * @param { !Array<number> } oldValue |
| * @param { !string } source |
| */ |
| keyChanged(key, newValue, oldValue, source) {} |
| /** |
| * @param { !Array<number> } key |
| * @param { !Array<number> } oldValue |
| * @param { !string } source |
| */ |
| keyDeleted(key, oldValue, source) {} |
| /** |
| * @param { !string } source |
| */ |
| allDeleted(source) {} |
| /** |
| * @param { !boolean } value |
| */ |
| shouldSendOldValueOnMutations(value) {} |
| }; |
| |
| /** |
| * @implements { mojo.InterfacePtr } |
| * @implements { blink.mojom.StorageAreaObserverImpl } |
| */ |
| blink.mojom.StorageAreaObserverPtr = class { |
| /** |
| * @param { !Array<number> } key |
| * @param { !Array<number> } value |
| * @param { !string } source |
| */ |
| keyAdded(key, value, source) {} |
| /** |
| * @param { !Array<number> } key |
| * @param { !Array<number> } newValue |
| * @param { !Array<number> } oldValue |
| * @param { !string } source |
| */ |
| keyChanged(key, newValue, oldValue, source) {} |
| /** |
| * @param { !Array<number> } key |
| * @param { !Array<number> } oldValue |
| * @param { !string } source |
| */ |
| keyDeleted(key, oldValue, source) {} |
| /** |
| * @param { !string } source |
| */ |
| allDeleted(source) {} |
| /** |
| * @param { !boolean } value |
| */ |
| shouldSendOldValueOnMutations(value) {} |
| }; |
| |
| goog.provide('blink.mojom.StorageAreaGetAllCallback'); |
| goog.provide('blink.mojom.StorageAreaGetAllCallbackImpl'); |
| goog.provide('blink.mojom.StorageAreaGetAllCallbackPtr'); |
| |
| |
| |
| /** |
| * @const |
| * @type { !mojo.Interface }; |
| */ |
| blink.mojom.StorageAreaGetAllCallback; |
| |
| /** @interface */ |
| blink.mojom.StorageAreaGetAllCallbackImpl = class { |
| /** |
| * @param { !boolean } success |
| */ |
| complete(success) {} |
| }; |
| |
| /** |
| * @implements { mojo.InterfacePtr } |
| * @implements { blink.mojom.StorageAreaGetAllCallbackImpl } |
| */ |
| blink.mojom.StorageAreaGetAllCallbackPtr = class { |
| /** |
| * @param { !boolean } success |
| */ |
| complete(success) {} |
| }; |
| |
| goog.provide('blink.mojom.StorageArea'); |
| goog.provide('blink.mojom.StorageAreaImpl'); |
| goog.provide('blink.mojom.StorageAreaPtr'); |
| |
| |
| |
| /** |
| * @const |
| * @type { !mojo.Interface }; |
| */ |
| blink.mojom.StorageArea; |
| |
| /** @interface */ |
| blink.mojom.StorageAreaImpl = class { |
| /** |
| * @param { !mojo.AssociatedInterfacePtrInfo } observer |
| */ |
| addObserver(observer) {} |
| /** |
| * @param { !Array<number> } key |
| * @param { !Array<number> } value |
| * @param { Array<number> } clientOldValue |
| * @param { !string } source |
| * @return {Promise} |
| */ |
| put(key, value, clientOldValue, source) {} |
| /** |
| * @param { !Array<number> } key |
| * @param { Array<number> } clientOldValue |
| * @param { !string } source |
| * @return {Promise} |
| */ |
| delete(key, clientOldValue, source) {} |
| /** |
| * @param { !string } source |
| * @return {Promise} |
| */ |
| deleteAll(source) {} |
| /** |
| * @param { !Array<number> } key |
| * @return {Promise} |
| */ |
| get(key) {} |
| /** |
| * @param { !mojo.AssociatedInterfacePtrInfo } completeCallback |
| * @return {Promise} |
| */ |
| getAll(completeCallback) {} |
| }; |
| |
| /** |
| * @implements { mojo.InterfacePtr } |
| * @implements { blink.mojom.StorageAreaImpl } |
| */ |
| blink.mojom.StorageAreaPtr = class { |
| /** |
| * @param { !mojo.AssociatedInterfacePtrInfo } observer |
| */ |
| addObserver(observer) {} |
| /** |
| * @param { !Array<number> } key |
| * @param { !Array<number> } value |
| * @param { Array<number> } clientOldValue |
| * @param { !string } source |
| * @return {Promise} |
| */ |
| put(key, value, clientOldValue, source) {} |
| /** |
| * @param { !Array<number> } key |
| * @param { Array<number> } clientOldValue |
| * @param { !string } source |
| * @return {Promise} |
| */ |
| delete(key, clientOldValue, source) {} |
| /** |
| * @param { !string } source |
| * @return {Promise} |
| */ |
| deleteAll(source) {} |
| /** |
| * @param { !Array<number> } key |
| * @return {Promise} |
| */ |
| get(key) {} |
| /** |
| * @param { !mojo.AssociatedInterfacePtrInfo } completeCallback |
| * @return {Promise} |
| */ |
| getAll(completeCallback) {} |
| }; |
| |
| goog.provide('blink.mojom.KeyValue'); |
| |
| blink.mojom.KeyValue = class { |
| constructor() { |
| /** @type { !Array<number> } */ |
| this.key; |
| /** @type { !Array<number> } */ |
| this.value; |
| } |
| }; |
| |
| goog.provide('blink.mojom.StorageAreaObserver_KeyAdded_Params'); |
| |
| blink.mojom.StorageAreaObserver_KeyAdded_Params = class { |
| constructor() { |
| /** @type { !Array<number> } */ |
| this.key; |
| /** @type { !Array<number> } */ |
| this.value; |
| /** @type { !string } */ |
| this.source; |
| } |
| }; |
| |
| goog.provide('blink.mojom.StorageAreaObserver_KeyChanged_Params'); |
| |
| blink.mojom.StorageAreaObserver_KeyChanged_Params = class { |
| constructor() { |
| /** @type { !Array<number> } */ |
| this.key; |
| /** @type { !Array<number> } */ |
| this.newValue; |
| /** @type { !Array<number> } */ |
| this.oldValue; |
| /** @type { !string } */ |
| this.source; |
| } |
| }; |
| |
| goog.provide('blink.mojom.StorageAreaObserver_KeyDeleted_Params'); |
| |
| blink.mojom.StorageAreaObserver_KeyDeleted_Params = class { |
| constructor() { |
| /** @type { !Array<number> } */ |
| this.key; |
| /** @type { !Array<number> } */ |
| this.oldValue; |
| /** @type { !string } */ |
| this.source; |
| } |
| }; |
| |
| goog.provide('blink.mojom.StorageAreaObserver_AllDeleted_Params'); |
| |
| blink.mojom.StorageAreaObserver_AllDeleted_Params = class { |
| constructor() { |
| /** @type { !string } */ |
| this.source; |
| } |
| }; |
| |
| goog.provide('blink.mojom.StorageAreaObserver_ShouldSendOldValueOnMutations_Params'); |
| |
| blink.mojom.StorageAreaObserver_ShouldSendOldValueOnMutations_Params = class { |
| constructor() { |
| /** @type { !boolean } */ |
| this.value; |
| } |
| }; |
| |
| goog.provide('blink.mojom.StorageAreaGetAllCallback_Complete_Params'); |
| |
| blink.mojom.StorageAreaGetAllCallback_Complete_Params = class { |
| constructor() { |
| /** @type { !boolean } */ |
| this.success; |
| } |
| }; |
| |
| goog.provide('blink.mojom.StorageArea_AddObserver_Params'); |
| |
| blink.mojom.StorageArea_AddObserver_Params = class { |
| constructor() { |
| /** @type { !mojo.AssociatedInterfacePtrInfo } */ |
| this.observer; |
| } |
| }; |
| |
| goog.provide('blink.mojom.StorageArea_Put_Params'); |
| |
| blink.mojom.StorageArea_Put_Params = class { |
| constructor() { |
| /** @type { !Array<number> } */ |
| this.key; |
| /** @type { !Array<number> } */ |
| this.value; |
| /** @type { Array<number> } */ |
| this.clientOldValue; |
| /** @type { !string } */ |
| this.source; |
| } |
| }; |
| |
| goog.provide('blink.mojom.StorageArea_Put_ResponseParams'); |
| |
| blink.mojom.StorageArea_Put_ResponseParams = class { |
| constructor() { |
| /** @type { !boolean } */ |
| this.success; |
| } |
| }; |
| |
| goog.provide('blink.mojom.StorageArea_Delete_Params'); |
| |
| blink.mojom.StorageArea_Delete_Params = class { |
| constructor() { |
| /** @type { !Array<number> } */ |
| this.key; |
| /** @type { Array<number> } */ |
| this.clientOldValue; |
| /** @type { !string } */ |
| this.source; |
| } |
| }; |
| |
| goog.provide('blink.mojom.StorageArea_Delete_ResponseParams'); |
| |
| blink.mojom.StorageArea_Delete_ResponseParams = class { |
| constructor() { |
| /** @type { !boolean } */ |
| this.success; |
| } |
| }; |
| |
| goog.provide('blink.mojom.StorageArea_DeleteAll_Params'); |
| |
| blink.mojom.StorageArea_DeleteAll_Params = class { |
| constructor() { |
| /** @type { !string } */ |
| this.source; |
| } |
| }; |
| |
| goog.provide('blink.mojom.StorageArea_DeleteAll_ResponseParams'); |
| |
| blink.mojom.StorageArea_DeleteAll_ResponseParams = class { |
| constructor() { |
| /** @type { !boolean } */ |
| this.success; |
| } |
| }; |
| |
| goog.provide('blink.mojom.StorageArea_Get_Params'); |
| |
| blink.mojom.StorageArea_Get_Params = class { |
| constructor() { |
| /** @type { !Array<number> } */ |
| this.key; |
| } |
| }; |
| |
| goog.provide('blink.mojom.StorageArea_Get_ResponseParams'); |
| |
| blink.mojom.StorageArea_Get_ResponseParams = class { |
| constructor() { |
| /** @type { !boolean } */ |
| this.success; |
| /** @type { !Array<number> } */ |
| this.value; |
| } |
| }; |
| |
| goog.provide('blink.mojom.StorageArea_GetAll_Params'); |
| |
| blink.mojom.StorageArea_GetAll_Params = class { |
| constructor() { |
| /** @type { !mojo.AssociatedInterfacePtrInfo } */ |
| this.completeCallback; |
| } |
| }; |
| |
| goog.provide('blink.mojom.StorageArea_GetAll_ResponseParams'); |
| |
| blink.mojom.StorageArea_GetAll_ResponseParams = class { |
| constructor() { |
| /** @type { !boolean } */ |
| this.success; |
| /** @type { !Array<blink.mojom.KeyValue> } */ |
| this.data; |
| } |
| }; |