| // 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.StoragePartitionService'); |
| goog.provide('blink.mojom.StoragePartitionServiceImpl'); |
| goog.provide('blink.mojom.StoragePartitionServicePtr'); |
| |
| |
| |
| /** |
| * @const |
| * @type { !mojo.Interface }; |
| */ |
| blink.mojom.StoragePartitionService; |
| |
| /** @interface */ |
| blink.mojom.StoragePartitionServiceImpl = class { |
| /** |
| * @param { !url.mojom.Origin } origin |
| * @param { !mojo.InterfaceRequest } area |
| */ |
| openLocalStorage(origin, area) {} |
| /** |
| * @param { !string } namespaceId |
| * @param { !mojo.InterfaceRequest } sessionNamespace |
| */ |
| openSessionStorage(namespaceId, sessionNamespace) {} |
| }; |
| |
| /** |
| * @implements { mojo.InterfacePtr } |
| * @implements { blink.mojom.StoragePartitionServiceImpl } |
| */ |
| blink.mojom.StoragePartitionServicePtr = class { |
| /** |
| * @param { !url.mojom.Origin } origin |
| * @param { !mojo.InterfaceRequest } area |
| */ |
| openLocalStorage(origin, area) {} |
| /** |
| * @param { !string } namespaceId |
| * @param { !mojo.InterfaceRequest } sessionNamespace |
| */ |
| openSessionStorage(namespaceId, sessionNamespace) {} |
| }; |
| |
| goog.provide('blink.mojom.StoragePartitionService_OpenLocalStorage_Params'); |
| |
| blink.mojom.StoragePartitionService_OpenLocalStorage_Params = class { |
| constructor() { |
| /** @type { !url.mojom.Origin } */ |
| this.origin; |
| /** @type { !mojo.InterfaceRequest } */ |
| this.area; |
| } |
| }; |
| |
| goog.provide('blink.mojom.StoragePartitionService_OpenSessionStorage_Params'); |
| |
| blink.mojom.StoragePartitionService_OpenSessionStorage_Params = class { |
| constructor() { |
| /** @type { !string } */ |
| this.namespaceId; |
| /** @type { !mojo.InterfaceRequest } */ |
| this.sessionNamespace; |
| } |
| }; |