blob: 612735ad2c8bf9b1a4dbecbeac249b2346c011f6 [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_CHROMEOS_ARC_SESSION_ADB_SIDELOADING_AVAILABILITY_DELEGATE_IMPL_H_
#define CHROME_BROWSER_CHROMEOS_ARC_SESSION_ADB_SIDELOADING_AVAILABILITY_DELEGATE_IMPL_H_
#include "components/arc/session/adb_sideloading_availability_delegate.h"
#include "chrome/browser/profiles/profile.h"
namespace arc {
class AdbSideloadingAvailabilityDelegateImpl
: public AdbSideloadingAvailabilityDelegate {
public:
AdbSideloadingAvailabilityDelegateImpl();
// Not copyable or movable
AdbSideloadingAvailabilityDelegateImpl(
const AdbSideloadingAvailabilityDelegateImpl&) = delete;
AdbSideloadingAvailabilityDelegateImpl& operator=(
const AdbSideloadingAvailabilityDelegateImpl&) = delete;
~AdbSideloadingAvailabilityDelegateImpl() override;
void SetProfile(Profile* profile);
void CanChangeAdbSideloading(
base::OnceCallback<void(bool can_change_adb_sideloading)> callback)
override;
private:
// Unowned pointer. Keeps current profile.
Profile* profile_ = nullptr;
};
} // namespace arc
#endif // CHROME_BROWSER_CHROMEOS_ARC_SESSION_ADB_SIDELOADING_AVAILABILITY_DELEGATE_IMPL_H_