blob: a01eb974643e9f1b854a876ef9bfa6c3852734e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMEOS_DBUS_SHILL_THIRD_PARTY_VPN_OBSERVER_H_
#define CHROMEOS_DBUS_SHILL_THIRD_PARTY_VPN_OBSERVER_H_
#include <stdint.h>
#include <string>
namespace chromeos {
// This is a base class for observers which handle signals sent by the
// ThirdPartyVpnAdaptor in Shill.
class ShillThirdPartyVpnObserver {
public:
virtual void OnPacketReceived(const std::string& data) = 0;
virtual void OnPlatformMessage(uint32_t message) = 0;
protected:
virtual ~ShillThirdPartyVpnObserver() {}
private:
DISALLOW_ASSIGN(ShillThirdPartyVpnObserver);
};
} // namespace chromeos
#endif // CHROMEOS_DBUS_SHILL_THIRD_PARTY_VPN_OBSERVER_H_
|