Skip to content

Commit 65a0db3

Browse files
author
Maura Winstanley
committed
syntax fixes
1 parent 5486285 commit 65a0db3

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

specs/ClearBrowsingData.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ In this document we describe the updated API. We'd appreciate your feedback.
88

99

1010
# Description
11-
We expose browsing data clearing in two asynchronous APIs:
11+
We expose browsing data clearing in three asynchronous APIs:
1212
```IDL
1313
HRESULT ClearBrowsingData(
1414
[in] COREWEBVIEW2_BROWSING_DATA_KINDS dataKinds,
@@ -19,12 +19,17 @@ HRESULT ClearBrowsingDataInTimeRange(
1919
[in] double startTime,
2020
[in] double endTime,
2121
[in] ICoreWebView2ClearBrowsingDataCompletedHandler* handler);
22+
23+
HRESULT ClearBrowsingDataAll(
24+
[in] ICoreWebView2ClearBrowsingDataCompletedHandler* handler);
2225
```
2326
The first method takes `COREWEBVIEW2_BROWSING_DATA_KINDS` which corresponds to the data type(s) to clear as well as a handler which will indicate if the proper data has been cleared successfully. This method clears the data regardless of timestamp.
2427

25-
The second method takes the same parameters for the dataKinds and handler, as well as a start and end time in which the API should clear the corresponding data between. The time parameters correspond to how many seconds have passed since the UNIX epoch. Passing in a value of zero or less than zero (up to negative infinity) will clear the corresponding data for any time before X time. Passing in a value of the current time or greater (up to positive infinity) will clear the corresponding data for any time after X time. For example passing in negative infinity and positive infinity as the time parameters will clear the entirety of the corresponding data. The timestamp represents the time at which the data was created.
28+
The second method takes the same parameters for the dataKinds and handler, as well as a start and end time in which the API should clear the corresponding data between. The time parameters correspond to how many seconds have passed since the UNIX epoch. Passing in a value of zero or less than zero (up to negative infinity) will clear the corresponding data for any time before the end time. Passing in a value of the current time or greater (up to positive infinity) will clear the corresponding data for any time after the start time. For example passing in negative infinity and positive infinity as the time parameters will clear the entirety of the corresponding data. The timestamp represents the time at which the data was created.
29+
30+
The third method only takes one parameter, the handler. This method clears the data regardless of timestamp and will clear all of the data included in the profile data kind listed below.
2631

27-
Both methods clear the data for the associated profile in which the method is called on.
32+
All methods clear the data for the associated profile in which the method is called on.
2833

2934
# Examples
3035

@@ -52,7 +57,7 @@ void ClearAutofillData()
5257
COREWEBVIEW2_BROWSING_DATA_KINDS_PASSWORD_AUTOSAVE);
5358
CHECK_FAILURE(profile->ClearBrowsingDataInTimeRange(
5459
dataKinds, startTime, endTime,
55-
Callback<ICoreWebView2StagingClearBrowsingDataCompletedHandler>(
60+
Callback<ICoreWebView2ClearBrowsingDataCompletedHandler>(
5661
[this](HRESULT error)
5762
-> HRESULT {
5863
return S_OK;

0 commit comments

Comments
 (0)