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

Unified Diff: ash/system/chromeos/network/vpn_delegate.cc

Issue 984863005: Add ash::VPNDelegate and Chrome OS implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move knowledge of the built-in OpenVPN provider from ash UI into the VPNDelegate. Created 5 years, 9 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/system/chromeos/network/vpn_delegate.cc
diff --git a/ash/system/chromeos/network/vpn_delegate.cc b/ash/system/chromeos/network/vpn_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..51a459b8f9113630700d2ff097ceef8754826e71
--- /dev/null
+++ b/ash/system/chromeos/network/vpn_delegate.cc
@@ -0,0 +1,37 @@
+// Copyright 2015 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.
+
+#include "ash/system/chromeos/network/vpn_delegate.h"
+
+namespace ash {
+
+VPNProvider::VPNProvider(const std::string& name, const std::string& id)
+ : name(name), id(id) {
+}
+
+VPNProvider::~VPNProvider() {
+}
+
+VPNDelegate::Observer::~Observer() {
+}
+
+VPNDelegate::VPNDelegate() {
+}
+
+VPNDelegate::~VPNDelegate() {
+}
+
+void VPNDelegate::AddObserver(Observer* observer) {
+ observer_list_.AddObserver(observer);
+}
+
+void VPNDelegate::RemoveObserver(Observer* observer) {
+ observer_list_.RemoveObserver(observer);
+}
+
+void VPNDelegate::NotifyObservers() {
+ FOR_EACH_OBSERVER(Observer, observer_list_, OnVPNProvidersChanged());
+}
+
+} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698