blob: a4c5be7afd6f26149330a02fc38601686d453763 [file] [log] [blame]
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_ASH_CALENDAR_CALENDAR_CLIENT_IMPL_H_
#define CHROME_BROWSER_UI_ASH_CALENDAR_CALENDAR_CLIENT_IMPL_H_
#include "ash/calendar/calendar_client.h"
#include "base/memory/raw_ptr.h"
#include "google_apis/calendar/calendar_api_requests.h"
class Profile;
namespace ash {
// Implementation of the calendar browser client, one per multiprofile user.
class CalendarClientImpl : public CalendarClient {
public:
explicit CalendarClientImpl(Profile* profile);
CalendarClientImpl(const CalendarClientImpl& other) = delete;
CalendarClientImpl& operator=(const CalendarClientImpl& other) = delete;
~CalendarClientImpl() override;
// CalendarClient:
base::OnceClosure GetEventList(
google_apis::calendar::CalendarEventListCallback callback,
const base::Time& start_time,
const base::Time& end_time) override;
private:
const raw_ptr<Profile, ExperimentalAsh> profile_;
};
} // namespace ash
#endif // CHROME_BROWSER_UI_ASH_CALENDAR_CALENDAR_CLIENT_IMPL_H_