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

Side by Side Diff: src/service.h

Issue 5321001: cashew: don't propagate inactive plans to clients (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cashew.git@master
Patch Set: Created 10 years, 1 month 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
OLDNEW
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SRC_SERVICE_H_ 5 #ifndef SRC_SERVICE_H_
6 #define SRC_SERVICE_H_ 6 #define SRC_SERVICE_H_
7 7
8 #include <glib.h> 8 #include <glib.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 virtual Type GetType() const; 71 virtual Type GetType() const;
72 72
73 // convert type string to Type enum value 73 // convert type string to Type enum value
74 static Type TypeFromString(const std::string& type); 74 static Type TypeFromString(const std::string& type);
75 75
76 // get Device object for this service 76 // get Device object for this service
77 // this can return NULL if we don't yet have Device info 77 // this can return NULL if we don't yet have Device info
78 virtual Device* GetDevice() const; 78 virtual Device* GetDevice() const;
79 79
80 // get data plan info, formatted for D-Bus 80 // get data plan info, formatted for D-Bus
81 // filters out inactive (future, expired, or consumed) plans
81 virtual DBusDataPlanList GetDBusDataPlans() const; 82 virtual DBusDataPlanList GetDBusDataPlans() const;
rtc 2010/11/23 04:38:58 Same comment about the accessor style. I'm happy w
Vince Laviano 2010/11/23 05:11:04 Done. Added TODO.
82 83
83 // do we think that we're the default service at this time? 84 // do we think that we're the default service at this time?
84 virtual bool IsDefaultService() const; 85 virtual bool IsDefaultService() const;
85 86
86 typedef enum { 87 typedef enum {
87 kConnectivityStateUnknown = 0, 88 kConnectivityStateUnknown = 0,
88 kConnectivityStateRestricted, 89 kConnectivityStateRestricted,
89 kConnectivityStateUnrestricted, 90 kConnectivityStateUnrestricted,
90 kConnectivityStateNone, 91 kConnectivityStateNone,
91 } ConnectivityState; 92 } ConnectivityState;
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 297
297 // consult policy to determine if we should send an unsolicited update 298 // consult policy to determine if we should send an unsolicited update
298 void MaybeEmitDataPlansUpdate(); 299 void MaybeEmitDataPlansUpdate();
299 300
300 DISALLOW_COPY_AND_ASSIGN(Service); 301 DISALLOW_COPY_AND_ASSIGN(Service);
301 }; 302 };
302 303
303 } // namespace cashew 304 } // namespace cashew
304 305
305 #endif // SRC_SERVICE_H_ 306 #endif // SRC_SERVICE_H_
OLDNEW
« src/data_plan.cc ('K') | « src/data_plan_unittest.cc ('k') | src/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698