Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: chromeos/dbus/shill_third_party_vpn_observer.h

Issue 681723003: Add new shill client for VPN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removes dependence on basic_types.h and fixes a build error Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROMEOS_DBUS_SHILL_THIRD_PARTY_VPN_OBSERVER_H_
6 #define CHROMEOS_DBUS_SHILL_THIRD_PARTY_VPN_OBSERVER_H_
7
8 #include <stdint.h>
9
10 namespace chromeos {
11
12 // This is a base class for observers which handle signals sent by the
13 // ThirdPartyVpnAdaptor in Shill.
14 class ShillThirdPartyVpnObserver {
15 public:
16 ShillThirdPartyVpnObserver() {}
pneubeck (no reviews) 2014/11/12 14:21:07 nit: you _could_ have dropped this constructor if
kaliamoorthi 2014/11/13 12:16:31 Acknowledged.
17
18 // Ownership of |data| belongs to the caller, hence the contents should be
19 // consumed before the call returns, i.e., pointer should not be dereferenced
20 // after the function returns. The method takes raw data pointer and length
21 // instead of a type like vector to avoid additional memcpys.
22 virtual void OnPacketReceived(const uint8_t* data, size_t length) = 0;
23 virtual void OnPlatformMessage(uint32_t message) = 0;
24
25 protected:
26 virtual ~ShillThirdPartyVpnObserver() {}
27
28 private:
29 DISALLOW_COPY_AND_ASSIGN(ShillThirdPartyVpnObserver);
30 };
31
32 } // namespace chromeos
33
34 #endif // CHROMEOS_DBUS_SHILL_THIRD_PARTY_VPN_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698