Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/default_policy.h

Issue 3528016: Cashew: implement backend usage API (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cashew.git
Patch Set: Fix code review nits and remove hardcoded usage URLs Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/data_plan_provider.cc ('k') | src/default_policy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « src/data_plan_provider.cc ('k') | src/default_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698