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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW
« 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