OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium 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 #include "chromeos/dbus/shill_third_party_vpn_driver_client.h" | 5 #include "chromeos/dbus/shill_third_party_vpn_driver_client.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "chromeos/dbus/shill_third_party_vpn_observer.h" | 12 #include "chromeos/dbus/shill_third_party_vpn_observer.h" |
13 #include "dbus/bus.h" | 13 #include "dbus/bus.h" |
14 #include "dbus/message.h" | 14 #include "dbus/message.h" |
15 #include "dbus/object_proxy.h" | 15 #include "dbus/object_proxy.h" |
16 #include "third_party/cros_system_api/dbus/service_constants.h" | 16 #include "third_party/cros_system_api/dbus/service_constants.h" |
17 | 17 |
18 namespace chromeos { | 18 namespace chromeos { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 const char* kSetParametersKeyList[] = { | 22 const char* kSetParametersKeyList[] = { |
23 shill::kAddressParameterThirdPartyVpn, | 23 shill::kAddressParameterThirdPartyVpn, |
24 shill::kBroadcastAddressParameterThirdPartyVpn, | 24 shill::kBroadcastAddressParameterThirdPartyVpn, |
25 shill::kExclusionListParameterThirdPartyVpn, | 25 shill::kExclusionListParameterThirdPartyVpn, |
26 shill::kInclusionListParameterThirdPartyVpn, | 26 shill::kInclusionListParameterThirdPartyVpn, |
27 shill::kSubnetPrefixParameterThirdPartyVpn, | 27 shill::kSubnetPrefixParameterThirdPartyVpn, |
28 shill::kMtuParameterThirdPartyVpn, | 28 shill::kMtuParameterThirdPartyVpn, |
29 shill::kDomainSearchParameterThirdPartyVpn, | 29 shill::kDomainSearchParameterThirdPartyVpn, |
30 shill::kDnsServersParameterThirdPartyVpn}; | 30 shill::kDnsServersParameterThirdPartyVpn, |
| 31 shill::kReconnectParameterThirdPartyVpn}; |
31 | 32 |
32 // The ShillThirdPartyVpnDriverClient implementation. | 33 // The ShillThirdPartyVpnDriverClient implementation. |
33 class ShillThirdPartyVpnDriverClientImpl | 34 class ShillThirdPartyVpnDriverClientImpl |
34 : public ShillThirdPartyVpnDriverClient { | 35 : public ShillThirdPartyVpnDriverClient { |
35 public: | 36 public: |
36 ShillThirdPartyVpnDriverClientImpl(); | 37 ShillThirdPartyVpnDriverClientImpl(); |
37 ~ShillThirdPartyVpnDriverClientImpl() override; | 38 ~ShillThirdPartyVpnDriverClientImpl() override; |
38 | 39 |
39 // ShillThirdPartyVpnDriverClient overrides | 40 // ShillThirdPartyVpnDriverClient overrides |
40 void AddShillThirdPartyVpnObserver( | 41 void AddShillThirdPartyVpnObserver( |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 | 336 |
336 ShillThirdPartyVpnDriverClient::~ShillThirdPartyVpnDriverClient() { | 337 ShillThirdPartyVpnDriverClient::~ShillThirdPartyVpnDriverClient() { |
337 } | 338 } |
338 | 339 |
339 // static | 340 // static |
340 ShillThirdPartyVpnDriverClient* ShillThirdPartyVpnDriverClient::Create() { | 341 ShillThirdPartyVpnDriverClient* ShillThirdPartyVpnDriverClient::Create() { |
341 return new ShillThirdPartyVpnDriverClientImpl(); | 342 return new ShillThirdPartyVpnDriverClientImpl(); |
342 } | 343 } |
343 | 344 |
344 } // namespace chromeos | 345 } // namespace chromeos |
OLD | NEW |