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_SHILL_THIRD_PARTY_VPN_OBSERVER_H_ | 5 #ifndef CHROMEOS_DBUS_SHILL_THIRD_PARTY_VPN_OBSERVER_H_ |
6 #define CHROMEOS_DBUS_SHILL_THIRD_PARTY_VPN_OBSERVER_H_ | 6 #define CHROMEOS_DBUS_SHILL_THIRD_PARTY_VPN_OBSERVER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <string> | 9 #include <vector> |
10 | 10 |
11 namespace chromeos { | 11 namespace chromeos { |
12 | 12 |
13 // This is a base class for observers which handle signals sent by the | 13 // This is a base class for observers which handle signals sent by the |
14 // ThirdPartyVpnAdaptor in Shill. | 14 // ThirdPartyVpnAdaptor in Shill. |
15 class ShillThirdPartyVpnObserver { | 15 class ShillThirdPartyVpnObserver { |
16 public: | 16 public: |
17 virtual void OnPacketReceived(const std::string& data) = 0; | 17 virtual void OnPacketReceived(const std::vector<char>& data) = 0; |
18 virtual void OnPlatformMessage(uint32_t message) = 0; | 18 virtual void OnPlatformMessage(uint32_t message) = 0; |
19 | 19 |
20 protected: | 20 protected: |
21 virtual ~ShillThirdPartyVpnObserver() {} | 21 virtual ~ShillThirdPartyVpnObserver() {} |
22 | 22 |
23 private: | 23 private: |
24 DISALLOW_ASSIGN(ShillThirdPartyVpnObserver); | 24 DISALLOW_ASSIGN(ShillThirdPartyVpnObserver); |
25 }; | 25 }; |
26 | 26 |
27 } // namespace chromeos | 27 } // namespace chromeos |
28 | 28 |
29 #endif // CHROMEOS_DBUS_SHILL_THIRD_PARTY_VPN_OBSERVER_H_ | 29 #endif // CHROMEOS_DBUS_SHILL_THIRD_PARTY_VPN_OBSERVER_H_ |
OLD | NEW |