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

Unified Diff: src/device.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/default_policy.cc ('k') | src/device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/device.h
diff --git a/src/device.h b/src/device.h
index 5fca3b6df152250466298971ec1c6effb1e920f6..49404c1aa18aa6f049bdac945c08b0ac30fa079b 100644
--- a/src/device.h
+++ b/src/device.h
@@ -14,12 +14,15 @@
namespace cashew {
+class Service;
+
// represents a cellular device and monitors Flimflam state for that device
class Device : public org::chromium::flimflam::Device_proxy,
public DBus::IntrospectableProxy,
public DBus::ObjectProxy {
public:
- Device(DBus::Connection& connection, const DBus::Path& path); // NOLINT
+ Device(Service * const parent, DBus::Connection& connection, // NOLINT
+ const DBus::Path& path);
virtual ~Device();
// get D-Bus path for this device
@@ -41,7 +44,7 @@ class Device : public org::chromium::flimflam::Device_proxy,
// NOTE: for now, should always be kTypeCellular
virtual Type GetType() const;
- static const char* kCarrierUnknown;
+ static const char *kCarrierUnknown;
// get cellular carrier for this device
// returns kCarrierUnknown if we don't know
@@ -52,6 +55,9 @@ class Device : public org::chromium::flimflam::Device_proxy,
const DBus::Variant& new_value);
private:
+ // back pointer to our parent Service
+ Service * const parent_;
+
// D-Bus path for Flimflam device that we represent
// this is our unique identifier
const DBus::Path path_;
« no previous file with comments | « src/default_policy.cc ('k') | src/device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698