1 // Copyright (c) 2018 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 COMPONENTS_ARC_NET_ALWAYS_ON_VPN_MANAGER_H_
6 #define COMPONENTS_ARC_NET_ALWAYS_ON_VPN_MANAGER_H_
7 
8 #include <string>
9 
10 #include "base/macros.h"
11 #include "components/prefs/pref_change_registrar.h"
12 #include "components/prefs/pref_service.h"
13 
14 namespace arc {
15 
16 class AlwaysOnVpnManager {
17  public:
18   explicit AlwaysOnVpnManager(PrefService* pref_service);
19   ~AlwaysOnVpnManager();
20 
21  private:
22   // Callback for the registrar
23   void OnPrefChanged();
24 
25   PrefChangeRegistrar registrar_;
26 
27   DISALLOW_COPY_AND_ASSIGN(AlwaysOnVpnManager);
28 };
29 
30 }  // namespace arc
31 
32 #endif  // COMPONENTS_ARC_NET_ALWAYS_ON_VPN_MANAGER_H_
33