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

Side by Side Diff: remoting/host/plugin/policy_hack/nat_policy_mac.cc

Issue 7599017: Framework to allow Chromoting host to respect NAT traversal policy in linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: silly compiler. Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 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 "remoting/host/plugin/policy_hack/nat_policy_mac.h"
6
7 #include "base/synchronization/waitable_event.h"
8
9 namespace remoting {
10 namespace policy_hack {
11
12 NatPolicyMac::NatPolicyMac(const NatEnabledCallback& nat_enabled_cb)
13 : nat_enabled_cb_(nat_enabled_cb) {
14 }
15
16 NatPolicyMac::~NatPolicyMac() {
17 }
18
19 void NatPolicyMac::StartWatching() {
20 nat_enabled_cb_.Run(false);
21 }
22
23 void NatPolicyMac::StopWatching(base::WaitableEvent* done) {
24 done->Signal();
25 }
26
27 NatPolicy* NatPolicy::Create(const NatEnabledCallback& nat_enabled_cb) {
28 return new NatPolicyMac(nat_enabled_cb);
29 }
30
31 } // namespace policy_hack
32 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698