123456789101112131415161718192021222324252627282930 |
- // 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_COMPONENTS_PHONEHUB_MUTABLE_PHONE_MODEL_H_
- #define ASH_COMPONENTS_PHONEHUB_MUTABLE_PHONE_MODEL_H_
- #include "ash/components/phonehub/phone_model.h"
- namespace ash {
- namespace phonehub {
- // Phone model which provides public API functions allowing the model to be
- // updated.
- class MutablePhoneModel : public PhoneModel {
- public:
- MutablePhoneModel();
- ~MutablePhoneModel() override;
- void SetPhoneName(const absl::optional<std::u16string>& phone_name);
- void SetPhoneStatusModel(
- const absl::optional<PhoneStatusModel>& phone_status_model);
- void SetBrowserTabsModel(
- const absl::optional<BrowserTabsModel>& browser_tabs_model);
- };
- } // namespace phonehub
- } // namespace ash
- #endif // ASH_COMPONENTS_PHONEHUB_MUTABLE_PHONE_MODEL_H_
|