Commit 2264c7e8 authored by Francois Doray's avatar Francois Doray Committed by Commit Bot

Remove dead code from content::LockManager.

Change-Id: I4bd4701f88cf0c266e136b641501800bc98be1c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1829477
Commit-Queue: François Doray <fdoray@chromium.org>
Reviewed-by: default avatarJoshua Bell <jsbell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#700903}
parent 42e52f36
...@@ -85,15 +85,6 @@ class LockManager::Lock { ...@@ -85,15 +85,6 @@ class LockManager::Lock {
~Lock() = default; ~Lock() = default;
// Abort a lock request.
void Abort(const std::string& message) {
DCHECK(request_);
DCHECK(!handle_);
request_->Abort(message);
request_.reset();
}
// Grant a lock request. This mints a LockHandle and returns it over the // Grant a lock request. This mints a LockHandle and returns it over the
// request pipe. // request pipe.
void Grant(base::WeakPtr<LockManager> context, const url::Origin& origin) { void Grant(base::WeakPtr<LockManager> context, const url::Origin& origin) {
......
...@@ -80,20 +80,10 @@ class LockManager : public base::RefCountedThreadSafe<LockManager>, ...@@ -80,20 +80,10 @@ class LockManager : public base::RefCountedThreadSafe<LockManager>,
url::Origin origin; url::Origin origin;
}; };
bool IsGrantable(const url::Origin& origin,
const std::string& name,
blink::mojom::LockMode mode) const;
// Mints a monotonically increasing identifier. Used both for lock requests // Mints a monotonically increasing identifier. Used both for lock requests
// and granted locks as keys in ordered maps. // and granted locks as keys in ordered maps.
int64_t NextLockId(); int64_t NextLockId();
void Break(const url::Origin& origin, const std::string& name);
// Called when a lock is requested and optionally when a lock is released,
// to process outstanding requests within the origin.
void ProcessRequests(const url::Origin& origin);
mojo::ReceiverSet<blink::mojom::LockManager, ReceiverState> receivers_; mojo::ReceiverSet<blink::mojom::LockManager, ReceiverState> receivers_;
int64_t next_lock_id_ = 0; int64_t next_lock_id_ = 0;
......
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