| Index: src/default_policy.cc
|
| diff --git a/src/default_policy.cc b/src/default_policy.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..90f754f17b7c0f0a705f4880291e8786272c64ae
|
| --- /dev/null
|
| +++ b/src/default_policy.cc
|
| @@ -0,0 +1,36 @@
|
| +// Copyright (c) 2010 The Chromium OS 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 "src/default_policy.h"
|
| +
|
| +#include <glog/logging.h>
|
| +
|
| +namespace cashew {
|
| +
|
| +// default update timer interval in seconds
|
| +static const guint kDefaultPolicyUpdateTimerIdleSecs = 60;
|
| +
|
| +DefaultPolicy::DefaultPolicy(const std::string& carrier) : carrier_(carrier) {
|
| +}
|
| +
|
| +DefaultPolicy::~DefaultPolicy() {
|
| +}
|
| +
|
| +const std::string& DefaultPolicy::GetCarrier() const {
|
| + return carrier_;
|
| +}
|
| +
|
| +guint DefaultPolicy::GetUpdateTimerIdleSecs(const DataPlanList& plans) const {
|
| + return kDefaultPolicyUpdateTimerIdleSecs;
|
| +}
|
| +
|
| +bool DefaultPolicy::ShouldEmitDataPlansUpdate(const DataPlanList& old_plans,
|
| + const DataPlanList& new_plans) const {
|
| + // unconditionally send an update
|
| + return true;
|
| +}
|
| +
|
| +// private methods
|
| +
|
| +} // namespace cashew
|
|
|