OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_INSTALLER_UTIL_ADVANCED_FIREWALL_MANAGER_WIN_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_ADVANCED_FIREWALL_MANAGER_WIN_H_ |
6 #define CHROME_INSTALLER_UTIL_ADVANCED_FIREWALL_MANAGER_WIN_H_ | 6 #define CHROME_INSTALLER_UTIL_ADVANCED_FIREWALL_MANAGER_WIN_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <netfw.h> | 9 #include <netfw.h> |
| 10 #include <stdint.h> |
10 #include <vector> | 11 #include <vector> |
11 | 12 |
12 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "base/macros.h" |
13 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
14 #include "base/win/scoped_comptr.h" | 16 #include "base/win/scoped_comptr.h" |
15 | 17 |
16 namespace installer { | 18 namespace installer { |
17 | 19 |
18 // Manages firewall rules using Advanced Security Windows API. The API is | 20 // Manages firewall rules using Advanced Security Windows API. The API is |
19 // available on Windows Vista and later. Most methods need elevation. | 21 // available on Windows Vista and later. Most methods need elevation. |
20 class AdvancedFirewallManager { | 22 class AdvancedFirewallManager { |
21 public: | 23 public: |
22 AdvancedFirewallManager(); | 24 AdvancedFirewallManager(); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 base::FilePath app_path_; | 65 base::FilePath app_path_; |
64 base::win::ScopedComPtr<INetFwPolicy2> firewall_policy_; | 66 base::win::ScopedComPtr<INetFwPolicy2> firewall_policy_; |
65 base::win::ScopedComPtr<INetFwRules> firewall_rules_; | 67 base::win::ScopedComPtr<INetFwRules> firewall_rules_; |
66 | 68 |
67 DISALLOW_COPY_AND_ASSIGN(AdvancedFirewallManager); | 69 DISALLOW_COPY_AND_ASSIGN(AdvancedFirewallManager); |
68 }; | 70 }; |
69 | 71 |
70 } // namespace installer | 72 } // namespace installer |
71 | 73 |
72 #endif // CHROME_INSTALLER_UTIL_ADVANCED_FIREWALL_MANAGER_WIN_H_ | 74 #endif // CHROME_INSTALLER_UTIL_ADVANCED_FIREWALL_MANAGER_WIN_H_ |
OLD | NEW |