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 #ifndef CHROMEOS_DBUS_FAKE_SHILL_THIRD_PARTY_VPN_DRIVER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_SHILL_THIRD_PARTY_VPN_DRIVER_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FAKE_SHILL_THIRD_PARTY_VPN_DRIVER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_SHILL_THIRD_PARTY_VPN_DRIVER_CLIENT_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "chromeos/chromeos_export.h" | 10 #include "chromeos/chromeos_export.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 const base::DictionaryValue& parameters, | 35 const base::DictionaryValue& parameters, |
36 const base::Closure& callback, | 36 const base::Closure& callback, |
37 const ShillClientHelper::ErrorCallback& error_callback) override; | 37 const ShillClientHelper::ErrorCallback& error_callback) override; |
38 void UpdateConnectionState( | 38 void UpdateConnectionState( |
39 const std::string& object_path_value, | 39 const std::string& object_path_value, |
40 const uint32_t connection_state, | 40 const uint32_t connection_state, |
41 const base::Closure& callback, | 41 const base::Closure& callback, |
42 const ShillClientHelper::ErrorCallback& error_callback) override; | 42 const ShillClientHelper::ErrorCallback& error_callback) override; |
43 void SendPacket( | 43 void SendPacket( |
44 const std::string& object_path_value, | 44 const std::string& object_path_value, |
45 const std::string& ip_packet, | 45 const std::vector<char>& ip_packet, |
46 const base::Closure& callback, | 46 const base::Closure& callback, |
47 const ShillClientHelper::ErrorCallback& error_callback) override; | 47 const ShillClientHelper::ErrorCallback& error_callback) override; |
48 ShillThirdPartyVpnDriverClient::TestInterface* GetTestInterface() override; | 48 ShillThirdPartyVpnDriverClient::TestInterface* GetTestInterface() override; |
49 | 49 |
50 // ShillThirdPartyVpnDriverClient::TestInterface overrides | 50 // ShillThirdPartyVpnDriverClient::TestInterface overrides |
51 void OnPacketReceived(const std::string& object_path_value, | 51 void OnPacketReceived(const std::string& object_path_value, |
52 const std::string& packet) override; | 52 const std::vector<char>& packet) override; |
53 void OnPlatformMessage(const std::string& object_path_value, | 53 void OnPlatformMessage(const std::string& object_path_value, |
54 uint32_t message) override; | 54 uint32_t message) override; |
55 | 55 |
56 private: | 56 private: |
57 using ObserverMap = std::map<std::string, ShillThirdPartyVpnObserver*>; | 57 using ObserverMap = std::map<std::string, ShillThirdPartyVpnObserver*>; |
58 | 58 |
59 ObserverMap observer_map_; | 59 ObserverMap observer_map_; |
60 | 60 |
61 DISALLOW_COPY_AND_ASSIGN(FakeShillThirdPartyVpnDriverClient); | 61 DISALLOW_COPY_AND_ASSIGN(FakeShillThirdPartyVpnDriverClient); |
62 }; | 62 }; |
63 | 63 |
64 } // namespace chromeos | 64 } // namespace chromeos |
65 | 65 |
66 #endif // CHROMEOS_DBUS_FAKE_SHILL_THIRD_PARTY_VPN_DRIVER_CLIENT_H_ | 66 #endif // CHROMEOS_DBUS_FAKE_SHILL_THIRD_PARTY_VPN_DRIVER_CLIENT_H_ |
OLD | NEW |