| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 ASH_MUS_VPN_DELEGATE_MUS_H_ | 5 #ifndef ASH_MUS_VPN_DELEGATE_MUS_H_ |
| 6 #define ASH_MUS_VPN_DELEGATE_MUS_H_ | 6 #define ASH_MUS_VPN_DELEGATE_MUS_H_ |
| 7 | 7 |
| 8 #include "ash/common/system/chromeos/network/vpn_delegate.h" | 8 #include "ash/common/system/chromeos/network/vpn_delegate.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 | 10 |
| 11 namespace ash { | 11 namespace ash { |
| 12 | 12 |
| 13 // VPN delegate for mustash. Fetches VPN data from browser process over mojo. | 13 // VPN delegate for mustash. Fetches VPN data from browser process over mojo. |
| 14 class VPNDelegateMus : public VPNDelegate { | 14 class VPNDelegateMus : public VPNDelegate { |
| 15 public: | 15 public: |
| 16 VPNDelegateMus(); | 16 VPNDelegateMus(); |
| 17 ~VPNDelegateMus() override; | 17 ~VPNDelegateMus() override; |
| 18 | 18 |
| 19 private: | 19 private: |
| 20 // VPNDelegate: | 20 // VPNDelegate: |
| 21 bool HaveThirdPartyVPNProviders() const override; | 21 void ShowAddPage(const std::string& extension_id) override; |
| 22 const std::vector<VPNProvider>& GetVPNProviders() const override; | |
| 23 void ShowAddPage(const VPNProvider::Key& key) override; | |
| 24 | |
| 25 // GetVPNProviders returns a reference to this list. | |
| 26 std::vector<VPNProvider> providers_; | |
| 27 | 22 |
| 28 DISALLOW_COPY_AND_ASSIGN(VPNDelegateMus); | 23 DISALLOW_COPY_AND_ASSIGN(VPNDelegateMus); |
| 29 }; | 24 }; |
| 30 | 25 |
| 31 } // namespace ash | 26 } // namespace ash |
| 32 | 27 |
| 33 #endif // ASH_MUS_VPN_DELEGATE_MUS_H_ | 28 #endif // ASH_MUS_VPN_DELEGATE_MUS_H_ |
| OLD | NEW |