| // Copyright 2019 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. |
| |
| #include "chromeos/components/sync_wifi/pending_network_configuration_update.h" |
| |
| namespace sync_wifi { |
| |
| PendingNetworkConfigurationUpdate::PendingNetworkConfigurationUpdate( |
| const std::string& ssid, |
| const std::string& change_guid, |
| const base::Optional<sync_pb::WifiConfigurationSpecificsData>& specifics, |
| int completed_attempts) |
| : ssid_(ssid), |
| change_guid_(change_guid), |
| specifics_(specifics), |
| completed_attempts_(completed_attempts) {} |
| |
| PendingNetworkConfigurationUpdate::PendingNetworkConfigurationUpdate( |
| const PendingNetworkConfigurationUpdate& update) = default; |
| |
| PendingNetworkConfigurationUpdate::~PendingNetworkConfigurationUpdate() = |
| default; |
| |
| bool PendingNetworkConfigurationUpdate::IsDeleteOperation() const { |
| return !specifics_.has_value(); |
| } |
| |
| } // namespace sync_wifi |