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

Unified Diff: remoting/host/plugin/policy_hack/nat_policy_mac.h

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 side-by-side diff with in-line comments
Download patch
Index: remoting/host/plugin/policy_hack/nat_policy_mac.h
diff --git a/remoting/host/plugin/policy_hack/nat_policy_mac.h b/remoting/host/plugin/policy_hack/nat_policy_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..a3c9106c9bd6fd2c571ec1e4373b6ef834995e7d
--- /dev/null
+++ b/remoting/host/plugin/policy_hack/nat_policy_mac.h
@@ -0,0 +1,38 @@
+// 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.
+
+#ifndef REMOTING_HOST_PLUGIN_POLICY_HACK_NAT_POLICY_MAC_H_
+#define REMOTING_HOST_PLUGIN_POLICY_HACK_NAT_POLICY_MAC_H_
+
+#include "remoting/host/plugin/policy_hack/nat_policy.h"
+
+namespace base {
+
+class MessageLoopProxy;
+
+namespace files {
+class FilePathWatcher;
+} // namespace base
+
+} // namespace files
+
+namespace remoting {
+namespace policy_hack {
+
+class NatPolicyMac : public NatPolicy {
+ public:
+ NatPolicyMac(const NatPolicy::NatEnabledCallback& nat_enabled_cb);
+ ~NatPolicyMac();
+
+ virtual void StartWatching() OVERRIDE;
+ virtual void StopWatching(base::WaitableEvent* done) OVERRIDE;
+
+ private:
+ NatEnabledCallback nat_enabled_cb_;
+};
+
+} // namespace policy_hack
+} // namespace remoting
+
+#endif // REMOTING_HOST_PLUGIN_POLICY_HACK_NAT_POLICY_MAC_H_

Powered by Google App Engine
This is Rietveld 408576698