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

Side by Side Diff: src/service_manager_impl.h

Issue 6250171: cashew: reset local counter on plan transition (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cashew.git@master
Patch Set: ers review comments Created 9 years, 10 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/service_manager.h ('k') | src/service_manager_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010, 2011 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2010, 2011 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_MANAGER_IMPL_H_ 5 #ifndef SRC_SERVICE_MANAGER_IMPL_H_
6 #define SRC_SERVICE_MANAGER_IMPL_H_ 6 #define SRC_SERVICE_MANAGER_IMPL_H_
7 7
8 #include <glib.h> 8 #include <glib.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // PropertyChangedDelegate methods 54 // PropertyChangedDelegate methods
55 55
56 // Perform deferred processing for an incoming PropertyChanged D-Bus signal 56 // Perform deferred processing for an incoming PropertyChanged D-Bus signal
57 // from Flimflam 57 // from Flimflam
58 virtual void OnPropertyChanged(const PropertyChangedHandler *handler, 58 virtual void OnPropertyChanged(const PropertyChangedHandler *handler,
59 const std::string& property_name, 59 const std::string& property_name,
60 const DBus::Variant& new_value); 60 const DBus::Variant& new_value);
61 61
62 // Service methods 62 // Service methods
63
64 // a child Service wants us to emit an update about its data plans
65 virtual void EmitDataPlansUpdate(const Service& service); 63 virtual void EmitDataPlansUpdate(const Service& service);
64 virtual void OnDataPlanInactive(const Service& service,
65 const DataPlan& plan);
66 66
67 private: 67 private:
68 // D-Bus connection owned by our creator 68 // D-Bus connection owned by our creator
69 // shared with Service objs that we create 69 // shared with Service objs that we create
70 DBus::Connection& connection_; 70 DBus::Connection& connection_;
71 71
72 // glib main loop 72 // glib main loop
73 GMainLoop * const main_loop_; 73 GMainLoop * const main_loop_;
74 74
75 // collection of Service objs representing cellular services 75 // collection of Service objs representing cellular services
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 // Flimflam has told us that it has gone offline 157 // Flimflam has told us that it has gone offline
158 void OnFlimflamOffline(); 158 void OnFlimflamOffline();
159 159
160 DISALLOW_COPY_AND_ASSIGN(ServiceManagerImpl); 160 DISALLOW_COPY_AND_ASSIGN(ServiceManagerImpl);
161 }; 161 };
162 162
163 } // namespace cashew 163 } // namespace cashew
164 164
165 #endif // SRC_SERVICE_MANAGER_IMPL_H_ 165 #endif // SRC_SERVICE_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « src/service_manager.h ('k') | src/service_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698