summaryrefslogtreecommitdiff
path: root/property_store.h
diff options
context:
space:
mode:
authorPaul Stewart <pstew@chromium.org>2011-12-07 17:11:11 -0800
committerGerrit <chrome-bot@google.com>2011-12-09 10:46:09 -0800
commitbe5f5b341ba4b85d45ffb6c0430ef5ab84c7b961 (patch)
treedd8434c80d5c3bdce296b578546ccf4bba3c025e /property_store.h
parent7cfca0467e47aa91b485c485b92befb33a1fd61f (diff)
downloadshill-be5f5b341ba4b85d45ffb6c0430ef5ab84c7b961.tar.gz
shill: Create HTTPProxy for connected services
When an a Connection is created on a Device, ask the Service to create an HTTPProxy. The Service will then expose the port number for the proxy as an RPC property. Whenever the Service is unselected by the Device, or the connection terminates, ask the Service to destroy the proxy. The Service owns the HTTPProxy so that it can report the proxy port in its properties. BUG=chromium-os:21664 TEST=Add expectations for DestroyProxy in unit tests. Manual: Ensure that "list-services" shows the proxy port on a successful connection, and "curl -x" to this proxy succeeds. Change-Id: I24a1f7a23c0fc4577b48aed7bec370fba6edc342 Reviewed-on: https://gerrit.chromium.org/gerrit/12625 Reviewed-by: mukesh agrawal <quiche@chromium.org> Commit-Ready: Paul Stewart <pstew@chromium.org> Tested-by: Paul Stewart <pstew@chromium.org>
Diffstat (limited to 'property_store.h')
-rw-r--r--property_store.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/property_store.h b/property_store.h
index caa14919..8bc4277e 100644
--- a/property_store.h
+++ b/property_store.h
@@ -125,6 +125,8 @@ class PropertyStore {
const StringsAccessor &accessor);
void RegisterDerivedStrIntPair(const std::string &name,
const StrIntPairAccessor &accessor);
+ void RegisterDerivedUint16(const std::string &name,
+ const Uint16Accessor &accessor);
private:
template <class V>