Index: chrome/installer/util/firewall_manager.h |
diff --git a/chrome/installer/util/firewall_manager.h b/chrome/installer/util/firewall_manager.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c654e5bcadf09347ba220a92e9d2d6354d17f7e3 |
--- /dev/null |
+++ b/chrome/installer/util/firewall_manager.h |
@@ -0,0 +1,41 @@ |
+// Copyright 2014 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 CHROME_INSTALLER_UTIL_FIREWALL_MANAGER_H_ |
+#define CHROME_INSTALLER_UTIL_FIREWALL_MANAGER_H_ |
+ |
+#include "base/basictypes.h" |
+#include "base/memory/scoped_ptr.h" |
+ |
+namespace base { |
+class FilePath; |
+} |
+class BrowserDistribution; |
+ |
+namespace installer { |
+ |
+// Implementation for Windows requires that COM be initialized on the calling |
+// thread. |
+class FirewallManager { |
+ public: |
+ virtual ~FirewallManager(); |
+ |
+ static scoped_ptr<FirewallManager> Create(BrowserDistribution* dist, |
+ const base::FilePath& chrome_path); |
+ |
+ virtual bool AddUDPFirewallRuleIfAbsent() = 0; |
+ |
+ virtual void DeleteUDPFirewallRule() = 0; |
+ |
+ virtual bool CanUseLocalUDPPort() = 0; |
+ |
+ protected: |
+ FirewallManager(); |
+ |
+ DISALLOW_COPY_AND_ASSIGN(FirewallManager); |
+}; |
+ |
+} // namespace installer |
+ |
+#endif // CHROME_INSTALLER_UTIL_FIREWALL_MANAGER_H_ |