Skip to content

Commit b04a9df

Browse files
author
Maura Winstanley
committed
typos
1 parent c8c4a0b commit b04a9df

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

specs/ClearBrowsingData.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
The WebView2 team has been asked for an API to allow end developers to clear the browsing data that is stored in the User Data Folder. Developers want to be able to clear data between each of their customers, clear space, and to clear data on the fly.
33

44
Currently developers can delete the entire User Data Folder to clear this data. This has a few drawbacks: it removes the entire user data folder instead of specific parts which incurs performance costs later on, the WebView must be shutdown fully and then re-initialized, and deleting the entire User Data Folder is a complex process.
5-
We are creating an API that will allow developers to clear the browsing data programtically in which the developer can specify the data kind to clear.
5+
We are creating an API that will allow developers to clear the browsing data programatically in which the developer can specify the data kind to clear.
66

77
In this document we describe the updated API. We'd appreciate your feedback.
88

99

1010
# Description
11-
The clear browsing data API is an asynchronous API and the data clearing is exposed in two different APIs:
11+
We expose browsing data clearing in two different asynchronous APIs:
1212
```IDL
1313
HRESULT ClearBrowsingData(
1414
[in] uint64 dataKinds,
@@ -53,7 +53,7 @@ bool EnvironmentComponent::ClearAutofillData()
5353
COREWEBVIEW2_BROWSING_DATA_KIND_PASSWORD_AUTOSAVE;
5454
CHECK_FAILURE(environment->ClearBrowsingData(
5555
data_kinds,
56-
Callback<ICoreWebView2StagingClearBrowsingDataCompletedHandler>(
56+
Callback<ICoreWebView2ClearBrowsingDataCompletedHandler>(
5757
[this](HRESULT error, COREWEBVIEW2_CLEAR_BROWSING_DATA_RESULT_KIND result_kind)
5858
-> HRESULT {
5959
LPCWSTR result;
@@ -123,13 +123,13 @@ typedef enum COREWEBVIEW2_CLEAR_BROWSING_DATA_RESULT_KIND {
123123
} COREWEBVIEW2_CLEAR_BROWSING_DATA_RESULT_KIND;
124124
125125
/// Specifies the datatype for the
126-
/// `ICoreWebView2StagingEnvironment2::ClearBrowsingData` method.
126+
/// `ICoreWebView2Environment2::ClearBrowsingData` method.
127127
[v1_enum]
128128
typedef enum COREWEBVIEW2_BROWSING_DATA_KIND {
129129
/// Specifies data stored by the AppCache DOM API.
130130
COREWEBVIEW2_BROWSING_DATA_KIND_APP_CACHE = 1<<0,
131131
132-
/// Specifies file systems stored by the FileSystems DOM API.
132+
/// Specifies data stored by the FileSystems DOM API.
133133
COREWEBVIEW2_BROWSING_DATA_KIND_FILE_SYSTEMS = 1<<1,
134134
135135
/// Specifies data stored by the IndexedDB DOM API.
@@ -188,8 +188,6 @@ typedef enum COREWEBVIEW2_BROWSING_DATA_KIND {
188188
COREWEBVIEW2_BROWSING_DATA_KIND_SETTINGS = 1<<12,
189189
190190
/// Specifies profile data that should be wiped to make it look like a new profile.
191-
/// This does not delete account-scoped data like passwords but will remove access
192-
/// to account-scoped data by signing the user out.
193191
/// This browsing data kind if inclusive of COREWEBVIEW2_BROWSING_DATA_KIND_SITE,
194192
/// COREWEBVIEW2_BROWSING_DATA_KIND_HTTP_CACHE,
195193
/// COREWEBVIEW2_BROWSING_DATA_KIND_DOWNLOAD_HISTORY,
@@ -204,7 +202,7 @@ typedef enum COREWEBVIEW2_BROWSING_DATA_KIND {
204202
} COREWEBVIEW2_BROWSING_DATA_KIND;
205203
206204
[uuid(4ecfcb16-dd09-4464-9a71-fd8e2d3ac0a2), object, pointer_default(unique)]
207-
interface ICoreWebView2StagingEnvironment2 : ICoreWebView2StagingEnvironment {
205+
interface ICoreWebView2Environment2 : ICoreWebView2Environment {
208206
/// Clear browsing data based on a data type. This method takes two parameters,
209207
/// the first being a mask of one or more COREWEBVIEW2_BROWSING_DATAKIND. Multiple
210208
/// COREWEBVIEW2_BROWSING_DATA_KIND values can be orred together to create a mask
@@ -232,12 +230,12 @@ interface ICoreWebView2StagingEnvironment2 : ICoreWebView2StagingEnvironment {
232230
/// parameters correspond to the number of seconds since the UNIX epoch.
233231
HRESULT ClearBrowsingData(
234232
[in] uint64 dataKinds,
235-
[in] ICoreWebView2StagingClearBrowsingDataCompletedHandler *handler);
233+
[in] ICoreWebView2ClearBrowsingDataCompletedHandler *handler);
236234
HRESULT ClearBrowsingDataInTimeRange(
237235
[in] uint64 dataKinds,
238236
[in] double startTime,
239237
[in] double endTime,
240-
[in] ICoreWebView2StagingClearBrowsingDataCompletedHandler *handler);
238+
[in] ICoreWebView2ClearBrowsingDataCompletedHandler *handler);
241239
}
242240
243241
/// The caller implements this interface to receive the ClearBrowsingData result.

0 commit comments

Comments
 (0)