Skip to content

Commit 258e38b

Browse files
committed
Begin defining types
1 parent d34f406 commit 258e38b

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

index.bs

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7081,12 +7081,6 @@ events related to storage.
70817081

70827082
### Definition ### {#module-storage-definition}
70837083

7084-
[=Local end definition=]
7085-
7086-
### Types ### {#module-storage-types}
7087-
7088-
#### The storage.Cookie Type #### {#type-storage-Cookie}
7089-
70907084
[=Remote end definition=]
70917085

70927086
<pre class="cddl remote-cddl">
@@ -7106,22 +7100,20 @@ StorageResult = (
71067100
)
71077101
</pre>
71087102

7103+
### Types ### {#module-storage-types}
7104+
7105+
#### The storage.PartitionKey Type #### {#type-storage-PartitionKey}
7106+
71097107
[=Remote end definition=] and [=Local end definition=]
71107108

71117109
<pre class="cddl local-cddl remote-cddl">
7112-
storage.Cookie = {
7113-
name: text;
7114-
value: text;
7115-
host: text;
7116-
? partitionKey: {
7117-
Extensible
7118-
};
7110+
storage.PartitionKey = {
7111+
? container: text,
7112+
? sourceOrigin: text,
71197113
}
71207114
</pre>
71217115

7122-
The <code>storage.Cookie</code> type provides details of a given cookie.
7123-
7124-
Issue: Confirm if <code>cookie</code> type should be consolidated in one place <code>storage.Cookie</code> or <code>Network.Cookie</code>.
7116+
The <code>storage.PartitionKey</code> type describes a namespace for storing data.
71257117

71267118
A [=remote end=] has a [=/set=] of <dfn>storage partition keys</dfn> which contains zero or more implementation-defined string values.
71277119

@@ -7138,7 +7130,13 @@ The <dfn export for=commands>storage.getCookie</dfn> command specific cookie ch
71387130
<dd>
71397131
<pre class="cddl remote-cddl">
71407132
storage.GetCookie = {
7133+
method: "storage.getCookie",
7134+
params: storage.GetCookieParameters
7135+
}
71417136

7137+
storage.GetCookieParameter = {
7138+
cookie: { ? ~ network.Cookie },
7139+
? partitionKey: storage.PartitionKey,
71427140
}
71437141
</pre>
71447142
</dd>

0 commit comments

Comments
 (0)