OLD | NEW |
(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 |
OLD | NEW |