| 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 #ifndef SRC_DEFAULT_POLICY_H_ |
| 6 #define SRC_DEFAULT_POLICY_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include <base/basictypes.h> // NOLINT |
| 11 |
| 12 #include "src/policy.h" |
| 13 |
| 14 namespace cashew { |
| 15 |
| 16 // a bare-bones default carrier policy |
| 17 class DefaultPolicy: public Policy { |
| 18 public: |
| 19 |
| 20 explicit DefaultPolicy(const std::string& carrier); |
| 21 virtual ~DefaultPolicy(); |
| 22 |
| 23 virtual const std::string& GetCarrier() const; |
| 24 |
| 25 virtual guint GetUpdateTimerIdleSecs(const DataPlanList& plans) const; |
| 26 |
| 27 virtual bool ShouldEmitDataPlansUpdate(const DataPlanList& old_plans, |
| 28 const DataPlanList& new_plans) const; |
| 29 |
| 30 private: |
| 31 // carrier |
| 32 const std::string carrier_; |
| 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(DefaultPolicy); |
| 35 }; |
| 36 |
| 37 } // namespace cashew |
| 38 |
| 39 #endif // SRC_DEFAULT_POLICY_H_ |
| OLD | NEW |