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

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: Addressed comment. 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 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698