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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
(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 VPNDelegate::Observer::~Observer() {
14 }
15
16 VPNDelegate::VPNDelegate() {
17 }
18
19 VPNDelegate::~VPNDelegate() {
20 }
21
22 void VPNDelegate::AddObserver(Observer* observer) {
23 observer_list_.AddObserver(observer);
24 }
25
26 void VPNDelegate::RemoveObserver(Observer* observer) {
27 observer_list_.RemoveObserver(observer);
28 }
29
30 void VPNDelegate::NotifyObservers() {
31 FOR_EACH_OBSERVER(Observer, observer_list_,
32 OnThirdPartyVPNProvidersChanged());
33 }
34
35 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698