| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/browser/download/download_exe.h" |
| 6 |
| 5 #include <set> | 7 #include <set> |
| 6 #include <string> | 8 #include <string> |
| 7 | 9 |
| 8 #include "chrome/browser/download/download_util.h" | 10 #include "base/logging.h" |
| 9 | 11 |
| 10 namespace download_util { | 12 namespace download_util { |
| 11 | 13 |
| 12 // For file extensions taken from mozilla: | 14 // For file extensions taken from mozilla: |
| 13 | 15 |
| 14 /* ***** BEGIN LICENSE BLOCK ***** | 16 /* ***** BEGIN LICENSE BLOCK ***** |
| 15 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 17 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 16 * | 18 * |
| 17 * The contents of this file are subject to the Mozilla Public License Version | 19 * The contents of this file are subject to the Mozilla Public License Version |
| 18 * 1.1 (the "License"); you may not use this file except in compliance with | 20 * 1.1 (the "License"); you may not use this file except in compliance with |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 }; | 130 }; |
| 129 | 131 |
| 130 void InitializeExeTypes(std::set<std::wstring>* exe_extensions) { | 132 void InitializeExeTypes(std::set<std::wstring>* exe_extensions) { |
| 131 DCHECK(exe_extensions); | 133 DCHECK(exe_extensions); |
| 132 for (size_t i = 0; i < arraysize(g_executables); ++i) | 134 for (size_t i = 0; i < arraysize(g_executables); ++i) |
| 133 exe_extensions->insert(g_executables[i]); | 135 exe_extensions->insert(g_executables[i]); |
| 134 } | 136 } |
| 135 | 137 |
| 136 } // namespace download_util | 138 } // namespace download_util |
| 137 | 139 |
| OLD | NEW |