Commit 4eaf6451 authored by Kenichi Ishibashi's avatar Kenichi Ishibashi Committed by Commit Bot

service worker: Remove outdated comments

GetNew{Registration,Version,Resource}Id() are async now. Remove
outdated comments.

Bug: N/A
Change-Id: I329d7a4de8949a7493d0751c24701b2a56ad0ef8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2386677Reviewed-by: default avatarHiroki Nakagawa <nhiroki@chromium.org>
Commit-Queue: Kenichi Ishibashi <bashi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#803354}
parent 4bc3b9b2
......@@ -265,27 +265,16 @@ class CONTENT_EXPORT ServiceWorkerStorage {
// Returns a new registration id which is guaranteed to be unique in the
// storage. Returns blink::mojom::kInvalidServiceWorkerRegistrationId if the
// storage is disabled.
// NOTE: Currently this method is synchronous but intentionally uses async
// style because ServiceWorkerStorage will be accessed via mojo calls soon.
// See crbug.com/1046335 for details.
void GetNewRegistrationId(
base::OnceCallback<void(int64_t registration_id)> callback);
// Returns a new version id which is guaranteed to be unique in the storage.
// Returns kInvalidServiceWorkerVersionId if the storage is disabled.
// NOTE: Currently this method can return a new version id synchronously
// and doesn't have to take a callback. Using a callback is a preparation
// for using ServiceWorkerStorage via a mojo interface.
// See crbug.com/1046335 for details.
void GetNewVersionId(base::OnceCallback<void(int64_t version_id)> callback);
// Returns a new resource id which is guaranteed to be unique in the storage.
// Returns blink::mojom::kInvalidServiceWorkerResourceId if the storage
// is disabled.
// NOTE: Currently this method can return a new resource id synchronously
// and doesn't have to take a callback. Using a callback is a preparation
// for using ServiceWorkerStorage via a mojo interface.
// See crbug.com/1046335 for details.
void GetNewResourceId(base::OnceCallback<void(int64_t resource_id)> callback);
void Disable();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment