OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 #include "ash/system/chromeos/network/vpn_delegate.h" |
| 6 |
| 7 namespace ash { |
| 8 |
| 9 VPNProvider::VPNProvider(const std::string& name, const std::string& id) |
| 10 : name(name), id(id) { |
| 11 } |
| 12 |
| 13 VPNProvider::~VPNProvider() { |
| 14 } |
| 15 |
| 16 VPNDelegate::Observer::~Observer() { |
| 17 } |
| 18 |
| 19 VPNDelegate::VPNDelegate() { |
| 20 } |
| 21 |
| 22 VPNDelegate::~VPNDelegate() { |
| 23 } |
| 24 |
| 25 void VPNDelegate::AddObserver(Observer* observer) { |
| 26 observer_list_.AddObserver(observer); |
| 27 } |
| 28 |
| 29 void VPNDelegate::RemoveObserver(Observer* observer) { |
| 30 observer_list_.RemoveObserver(observer); |
| 31 } |
| 32 |
| 33 void VPNDelegate::NotifyObservers() { |
| 34 FOR_EACH_OBSERVER(Observer, observer_list_, |
| 35 OnThirdPartyVPNProvidersChanged()); |
| 36 } |
| 37 |
| 38 } // namespace ash |
OLD | NEW |