| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "src/default_policy.h" |
| 6 |
| 7 #include <glog/logging.h> |
| 8 |
| 9 namespace cashew { |
| 10 |
| 11 // default update timer interval in seconds |
| 12 static const guint kDefaultPolicyUpdateTimerIdleSecs = 60; |
| 13 |
| 14 DefaultPolicy::DefaultPolicy(const std::string& carrier) : carrier_(carrier) { |
| 15 } |
| 16 |
| 17 DefaultPolicy::~DefaultPolicy() { |
| 18 } |
| 19 |
| 20 const std::string& DefaultPolicy::GetCarrier() const { |
| 21 return carrier_; |
| 22 } |
| 23 |
| 24 guint DefaultPolicy::GetUpdateTimerIdleSecs(const DataPlanList& plans) const { |
| 25 return kDefaultPolicyUpdateTimerIdleSecs; |
| 26 } |
| 27 |
| 28 bool DefaultPolicy::ShouldEmitDataPlansUpdate(const DataPlanList& old_plans, |
| 29 const DataPlanList& new_plans) const { |
| 30 // unconditionally send an update |
| 31 return true; |
| 32 } |
| 33 |
| 34 // private methods |
| 35 |
| 36 } // namespace cashew |
| OLD | NEW |