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

Unified Diff: chrome/installer/util/firewall_manager.h

Issue 149023010: UDP firewall rules for Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more xp code Created 6 years, 10 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: 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_
« no previous file with comments | « chrome/installer/util/advanced_security_firewall_manager_win.cc ('k') | chrome/installer/util/firewall_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698