OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXTENSIONS_EXTENSION_CREATOR_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_CREATOR_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_CREATOR_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_CREATOR_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 | 13 |
14 namespace crypto { | 14 namespace crypto { |
15 class RSAPrivateKey; | 15 class RSAPrivateKey; |
16 } | 16 } |
17 | 17 |
18 class FilePath; | 18 class FilePath; |
19 | 19 |
| 20 namespace extensions { |
| 21 |
20 // This class create an installable extension (.crx file) given an input | 22 // This class create an installable extension (.crx file) given an input |
21 // directory that contains a valid manifest.json and the extension's resources | 23 // directory that contains a valid manifest.json and the extension's resources |
22 // contained within that directory. The output .crx file is always signed with a | 24 // contained within that directory. The output .crx file is always signed with a |
23 // private key that is either provided in |private_key_path| or is internal | 25 // private key that is either provided in |private_key_path| or is internal |
24 // generated randomly (and optionally written to |output_private_key_path|. | 26 // generated randomly (and optionally written to |output_private_key_path|. |
25 class ExtensionCreator { | 27 class ExtensionCreator { |
26 public: | 28 public: |
27 ExtensionCreator(); | 29 ExtensionCreator(); |
28 | 30 |
29 // Settings to specify treatment of special or ignorable error conditions. | 31 // Settings to specify treatment of special or ignorable error conditions. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 90 |
89 // Holds a message for any error that is raised during Run(...). | 91 // Holds a message for any error that is raised during Run(...). |
90 std::string error_message_; | 92 std::string error_message_; |
91 | 93 |
92 // Type of error that was raised, if any. | 94 // Type of error that was raised, if any. |
93 ErrorType error_type_; | 95 ErrorType error_type_; |
94 | 96 |
95 DISALLOW_COPY_AND_ASSIGN(ExtensionCreator); | 97 DISALLOW_COPY_AND_ASSIGN(ExtensionCreator); |
96 }; | 98 }; |
97 | 99 |
| 100 } // namespace extensions |
| 101 |
98 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CREATOR_H_ | 102 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CREATOR_H_ |
OLD | NEW |