| 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 #include "chrome/installer/util/firewall_manager_win.h" | 5 #include "chrome/installer/util/firewall_manager_win.h" |
| 6 | 6 |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "chrome/installer/util/advanced_firewall_manager_win.h" | 9 #include "chrome/installer/util/advanced_firewall_manager_win.h" |
| 10 #include "chrome/installer/util/browser_distribution.h" | 10 #include "chrome/installer/util/browser_distribution.h" |
| 11 #include "chrome/installer/util/install_util.h" | 11 #include "chrome/installer/util/install_util.h" |
| 12 #include "chrome/installer/util/installer_util_strings.h" | |
| 13 #include "chrome/installer/util/l10n_string_util.h" | 12 #include "chrome/installer/util/l10n_string_util.h" |
| 14 #include "chrome/installer/util/legacy_firewall_manager_win.h" | 13 #include "chrome/installer/util/legacy_firewall_manager_win.h" |
| 15 | 14 |
| 15 #include "installer_util_strings.h" // NOLINT |
| 16 |
| 16 namespace installer { | 17 namespace installer { |
| 17 | 18 |
| 18 namespace { | 19 namespace { |
| 19 | 20 |
| 20 const uint16 kDefaultMdnsPort = 5353; | 21 const uint16 kDefaultMdnsPort = 5353; |
| 21 | 22 |
| 22 class FirewallManagerAdvancedImpl : public FirewallManager { | 23 class FirewallManagerAdvancedImpl : public FirewallManager { |
| 23 public: | 24 public: |
| 24 FirewallManagerAdvancedImpl() {} | 25 FirewallManagerAdvancedImpl() {} |
| 25 ~FirewallManagerAdvancedImpl() override {} | 26 ~FirewallManagerAdvancedImpl() override {} |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 if (legacy_manager->Init(dist->GetDisplayName(), chrome_path)) | 114 if (legacy_manager->Init(dist->GetDisplayName(), chrome_path)) |
| 114 return legacy_manager.Pass(); | 115 return legacy_manager.Pass(); |
| 115 | 116 |
| 116 return scoped_ptr<FirewallManager>(); | 117 return scoped_ptr<FirewallManager>(); |
| 117 } | 118 } |
| 118 | 119 |
| 119 FirewallManager::FirewallManager() { | 120 FirewallManager::FirewallManager() { |
| 120 } | 121 } |
| 121 | 122 |
| 122 } // namespace installer | 123 } // namespace installer |
| OLD | NEW |