summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/shill_third_party_vpn_observer.h
blob: 0a85eb8f26e2094d0fb554ac61c89af59d2acfdf (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 <vector>

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::vector<char>& 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_