Index: remoting/host/plugin/policy_hack/nat_policy_mac.cc |
diff --git a/remoting/host/plugin/policy_hack/nat_policy_mac.cc b/remoting/host/plugin/policy_hack/nat_policy_mac.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..aa2270ec25d3a9fd43ec9baa15a60636260104ec |
--- /dev/null |
+++ b/remoting/host/plugin/policy_hack/nat_policy_mac.cc |
@@ -0,0 +1,32 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "remoting/host/plugin/policy_hack/nat_policy_mac.h" |
+ |
+#include "base/synchronization/waitable_event.h" |
+ |
+namespace remoting { |
+namespace policy_hack { |
+ |
+NatPolicyMac::NatPolicyMac(const NatEnabledCallback& nat_enabled_cb) |
+ : nat_enabled_cb_(nat_enabled_cb) { |
+} |
+ |
+NatPolicyMac::~NatPolicyMac() { |
+} |
+ |
+void NatPolicyMac::StartWatching() { |
+ nat_enabled_cb_.Run(false); |
+} |
+ |
+void NatPolicyMac::StopWatching(base::WaitableEvent* done) { |
+ done->Signal(); |
+} |
+ |
+NatPolicy* NatPolicy::Create(const NatEnabledCallback& nat_enabled_cb) { |
+ return new NatPolicyMac(nat_enabled_cb); |
+} |
+ |
+} // namespace policy_hack |
+} // namespace remoting |