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

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

Issue 820673004: json_schema_compiler: Use std::vector<char> for binary values. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simplify_json_schema
Patch Set: Fix merge error. Created 5 years, 11 months 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698