Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 "base/basictypes.h" | |
|
pneubeck (no reviews)
2014/11/11 13:09:35
should be base/macros.h
instead.
kaliamoorthi
2014/11/11 14:58:34
This is for uint32
| |
| 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 // Ownership of |data| belongs to the caller, hence the contents should be | |
|
pneubeck (no reviews)
2014/11/11 13:09:35
why not just passing a vector<uint8> or a string i
kaliamoorthi
2014/11/11 14:58:34
As we discussed this is to reduce memcpy. I docume
| |
| 17 // consumed before the call returns, i.e., pointer should not be dereferenced | |
| 18 // after the function returns. | |
| 19 virtual void OnPacketReceived(const uint8* data, size_t length) = 0; | |
| 20 virtual void OnPlatformMessage(uint32 message) = 0; | |
| 21 | |
| 22 protected: | |
| 23 virtual ~ShillThirdPartyVpnObserver() {} | |
|
pneubeck (no reviews)
2014/11/11 13:09:35
Add also a
private:
DISALLOW_ASSIGN
kaliamoorthi
2014/11/11 14:58:34
Done.
| |
| 24 }; | |
| 25 | |
| 26 } // namespace chromeos | |
| 27 | |
| 28 #endif // CHROMEOS_DBUS_SHILL_THIRD_PARTY_VPN_OBSERVER_H_ | |
| OLD | NEW |