shill: vpn: Implement VPNService::GetStorageIdentifier.
BUG=chromium-os:26988
TEST=unit tests
Change-Id: I7b1708b9208c4222240cfe2be64bca0e84037290
Reviewed-on: https://gerrit.chromium.org/gerrit/17827
Tested-by: Darin Petkov <petkov@chromium.org>
Reviewed-by: Paul Stewart <pstew@chromium.org>
Commit-Ready: Darin Petkov <petkov@chromium.org>
diff --git a/vpn_service.h b/vpn_service.h
index 2a3ada1..a004cc7 100644
--- a/vpn_service.h
+++ b/vpn_service.h
@@ -12,6 +12,7 @@
namespace shill {
+class KeyValueStore;
class VPNDriver;
class VPNService : public Service {
@@ -30,11 +31,16 @@
VPNDriver *driver() const { return driver_.get(); }
+ static std::string CreateStorageIdentifier(const KeyValueStore &args,
+ Error *error);
+ void set_storage_id(const std::string &id) { storage_id_ = id; }
+
private:
FRIEND_TEST(VPNServiceTest, GetDeviceRpcId);
virtual std::string GetDeviceRpcId(Error *error);
+ std::string storage_id_;
scoped_ptr<VPNDriver> driver_;
DISALLOW_COPY_AND_ASSIGN(VPNService);