OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 #ifndef CHROME_INSTALLER_UTIL_FIREWALL_MANAGER_H_ |
| 6 #define CHROME_INSTALLER_UTIL_FIREWALL_MANAGER_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 10 |
| 11 namespace base { |
| 12 class FilePath; |
| 13 } |
| 14 class BrowserDistribution; |
| 15 |
| 16 namespace installer { |
| 17 |
| 18 // Implementation for Windows requires that COM be initialized on the calling |
| 19 // thread. |
| 20 class FirewallManager { |
| 21 public: |
| 22 virtual ~FirewallManager(); |
| 23 |
| 24 static scoped_ptr<FirewallManager> Create(BrowserDistribution* dist, |
| 25 const base::FilePath& chrome_path); |
| 26 |
| 27 virtual bool AddUDPFirewallRuleIfAbsent() = 0; |
| 28 |
| 29 virtual void DeleteUDPFirewallRule() = 0; |
| 30 |
| 31 virtual bool CanUseLocalUDPPort() = 0; |
| 32 |
| 33 protected: |
| 34 FirewallManager(); |
| 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(FirewallManager); |
| 37 }; |
| 38 |
| 39 } // namespace installer |
| 40 |
| 41 #endif // CHROME_INSTALLER_UTIL_FIREWALL_MANAGER_H_ |
OLD | NEW |