forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fake_ambient_backend_controller_impl.h
44 lines (36 loc) · 1.63 KB
/
fake_ambient_backend_controller_impl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// 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 ASH_AMBIENT_FAKE_AMBIENT_BACKEND_CONTROLLER_IMPL_H_
#define ASH_AMBIENT_FAKE_AMBIENT_BACKEND_CONTROLLER_IMPL_H_
#include "ash/ash_export.h"
#include "ash/public/cpp/ambient/ambient_backend_controller.h"
#include "base/memory/weak_ptr.h"
namespace ash {
// A dummy implementation of AmbientBackendController.
class ASH_EXPORT FakeAmbientBackendControllerImpl
: public AmbientBackendController {
public:
FakeAmbientBackendControllerImpl();
~FakeAmbientBackendControllerImpl() override;
// AmbientBackendController:
void FetchScreenUpdateInfo(
int num_topics,
OnScreenUpdateInfoFetchedCallback callback) override;
void GetSettings(GetSettingsCallback callback) override;
void UpdateSettings(const AmbientSettings& settings,
UpdateSettingsCallback callback) override;
void FetchSettingPreview(int preview_width,
int preview_height,
OnSettingPreviewFetchedCallback) override;
void FetchPersonalAlbums(int banner_width,
int banner_height,
int num_albums,
const std::string& resume_token,
OnPersonalAlbumsFetchedCallback callback) override;
void SetPhotoRefreshInterval(base::TimeDelta interval) override;
private:
base::WeakPtrFactory<FakeAmbientBackendControllerImpl> weak_factory_{this};
};
} // namespace ash
#endif // ASH_AMBIENT_FAKE_AMBIENT_BACKEND_CONTROLLER_IMPL_H_