| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BROWSER_INSTALL_VERIFICATION_WIN_MODULE_LIST_H_ | 5 #ifndef CHROME_BROWSER_INSTALL_VERIFICATION_WIN_MODULE_LIST_H_ |
| 6 #define CHROME_BROWSER_INSTALL_VERIFICATION_WIN_MODULE_LIST_H_ | 6 #define CHROME_BROWSER_INSTALL_VERIFICATION_WIN_MODULE_LIST_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 8 #include <Windows.h> | 9 #include <Windows.h> |
| 9 | 10 |
| 10 #include <set> | 11 #include <set> |
| 11 #include <vector> | 12 #include <vector> |
| 12 | 13 |
| 13 #include "base/basictypes.h" | 14 #include "base/macros.h" |
| 14 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 15 | 16 |
| 16 struct ModuleInfo; | 17 struct ModuleInfo; |
| 17 | 18 |
| 18 // Manages a list of HMODULEs, releasing them upon destruction. | 19 // Manages a list of HMODULEs, releasing them upon destruction. |
| 19 class ModuleList { | 20 class ModuleList { |
| 20 public: | 21 public: |
| 21 ~ModuleList(); | 22 ~ModuleList(); |
| 22 | 23 |
| 23 // Attempts to AddRef each HMODULE in |snapshot|. If a module was unloaded | 24 // Attempts to AddRef each HMODULE in |snapshot|. If a module was unloaded |
| (...skipping 17 matching lines...) Expand all Loading... |
| 41 | 42 |
| 42 private: | 43 private: |
| 43 ModuleList(); | 44 ModuleList(); |
| 44 | 45 |
| 45 std::vector<HMODULE> modules_; | 46 std::vector<HMODULE> modules_; |
| 46 | 47 |
| 47 DISALLOW_COPY_AND_ASSIGN(ModuleList); | 48 DISALLOW_COPY_AND_ASSIGN(ModuleList); |
| 48 }; | 49 }; |
| 49 | 50 |
| 50 #endif // CHROME_BROWSER_INSTALL_VERIFICATION_WIN_MODULE_LIST_H_ | 51 #endif // CHROME_BROWSER_INSTALL_VERIFICATION_WIN_MODULE_LIST_H_ |
| OLD | NEW |