#include "chrome/browser/web_applications/locks/lock.h"
#include <memory>
#include <ostream>
#include "chrome/browser/web_applications/locks/partitioned_lock_manager.h"
#include "chrome/browser/web_applications/locks/web_app_lock_manager.h"
#include "chrome/browser/web_applications/web_app_provider.h"
#include "components/webapps/common/web_app_id.h"
namespace web_app {
std::string LockTypeToString(LockDescription::Type type) { … }
LockDescription::LockDescription(base::flat_set<webapps::AppId> app_ids,
LockDescription::Type type)
: … { … }
LockDescription::LockDescription(LockDescription&&) = default;
LockDescription::~LockDescription() = default;
bool LockDescription::IncludesSharedWebContents() const { … }
base::Value LockDescription::AsDebugValue() const { … }
std::ostream& operator<<(std::ostream& out,
const LockDescription& lock_description) { … }
WebContentsManager& Lock::web_contents_manager() { … }
Lock::Lock(std::unique_ptr<PartitionedLockHolder> holder,
base::WeakPtr<WebAppLockManager> lock_manager)
: … { … }
Lock::~Lock() = default;
}