OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_SAFE_BROWSING_SETTINGS_RESET_PROMPT_EXTENSION_INFO_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_EXTENSION_INFO_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_EXTENSION_INFO_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_EXTENSION_INFO_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "extensions/common/extension_id.h" | 10 #include "extensions/common/extension_id.h" |
11 | 11 |
12 namespace extensions { | 12 namespace extensions { |
13 class Extension; | 13 class Extension; |
14 } // namespace extensions | 14 } // namespace extensions |
15 | 15 |
16 namespace safe_browsing { | 16 namespace safe_browsing { |
17 | 17 |
18 struct ExtensionInfo { | 18 struct ExtensionInfo { |
19 explicit ExtensionInfo(const extensions::Extension* extension); | 19 explicit ExtensionInfo(const extensions::Extension* extension); |
| 20 // Convenience constructor for tests. |
| 21 ExtensionInfo(const extensions::ExtensionId& id, const std::string& name); |
20 ~ExtensionInfo(); | 22 ~ExtensionInfo(); |
21 | 23 |
22 extensions::ExtensionId id; | 24 extensions::ExtensionId id; |
23 std::string name; | 25 std::string name; |
24 }; | 26 }; |
25 | 27 |
26 } // namespace safe_browsing | 28 } // namespace safe_browsing |
27 | 29 |
28 #endif // CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_EXTENSION_INFO_H_ | 30 #endif // CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_EXTENSION_INFO_H_ |
OLD | NEW |