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

Unified Diff: ash/mus/vpn_delegate_mus.h

Issue 2378193002: mustash: Show networking items in ash system tray (Closed)
Patch Set: typo Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: ash/mus/vpn_delegate_mus.h
diff --git a/ash/mus/vpn_delegate_mus.h b/ash/mus/vpn_delegate_mus.h
new file mode 100644
index 0000000000000000000000000000000000000000..e4d4deadab781032e5fb9455fbdc31eeec0a1244
--- /dev/null
+++ b/ash/mus/vpn_delegate_mus.h
@@ -0,0 +1,33 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_MUS_VPN_DELEGATE_MUS_H_
+#define ASH_MUS_VPN_DELEGATE_MUS_H_
+
+#include "ash/common/system/chromeos/network/vpn_delegate.h"
+#include "base/macros.h"
+
+namespace ash {
+
+// VPN delegate for mustash. Fetches VPN data from browser process over mojo.
+class VPNDelegateMus : public VPNDelegate {
+ public:
+ VPNDelegateMus();
+ ~VPNDelegateMus() override;
+
+ private:
+ // VPNDelegate:
+ bool HaveThirdPartyVPNProviders() const override;
+ const std::vector<VPNProvider>& GetVPNProviders() const override;
+ void ShowAddPage(const VPNProvider::Key& key) override;
+
+ // GetVPNProviders returns a reference to this list.
+ std::vector<VPNProvider> providers_;
+
+ DISALLOW_COPY_AND_ASSIGN(VPNDelegateMus);
+};
+
+} // namespace ash
+
+#endif // ASH_MUS_VPN_DELEGATE_MUS_H_

Powered by Google App Engine
This is Rietveld 408576698