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_UI_WEBUI_EXTENSIONS_PACK_EXTENSION_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_EXTENSIONS_PACK_EXTENSION_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_PACK_EXTENSION_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_PACK_EXTENSION_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 void GetLocalizedValues(DictionaryValue* localized_strings); | 25 void GetLocalizedValues(DictionaryValue* localized_strings); |
26 | 26 |
27 // WebUIMessageHandler implementation. | 27 // WebUIMessageHandler implementation. |
28 virtual void RegisterMessages() OVERRIDE; | 28 virtual void RegisterMessages() OVERRIDE; |
29 | 29 |
30 // ExtensionPackJob::Client implementation. | 30 // ExtensionPackJob::Client implementation. |
31 virtual void OnPackSuccess(const FilePath& crx_file, | 31 virtual void OnPackSuccess(const FilePath& crx_file, |
32 const FilePath& key_file) OVERRIDE; | 32 const FilePath& key_file) OVERRIDE; |
33 | 33 |
34 virtual void OnPackFailure(const std::string& error, | 34 virtual void OnPackFailure(const std::string& error, |
35 ExtensionCreator::ErrorType) OVERRIDE; | 35 extensions::ExtensionCreator::ErrorType) OVERRIDE; |
36 | 36 |
37 private: | 37 private: |
38 // SelectFileDialog::Listener implementation. | 38 // SelectFileDialog::Listener implementation. |
39 virtual void FileSelected(const FilePath& path, | 39 virtual void FileSelected(const FilePath& path, |
40 int index, void* params) OVERRIDE; | 40 int index, void* params) OVERRIDE; |
41 virtual void MultiFilesSelected( | 41 virtual void MultiFilesSelected( |
42 const std::vector<FilePath>& files, void* params) OVERRIDE; | 42 const std::vector<FilePath>& files, void* params) OVERRIDE; |
43 virtual void FileSelectionCanceled(void* params) OVERRIDE {} | 43 virtual void FileSelectionCanceled(void* params) OVERRIDE {} |
44 | 44 |
45 // JavaScript callback to start packing an extension. | 45 // JavaScript callback to start packing an extension. |
(...skipping 19 matching lines...) Expand all Loading... |
65 // Path to root directory of extension | 65 // Path to root directory of extension |
66 std::string extension_path_; | 66 std::string extension_path_; |
67 | 67 |
68 // Path to private key file, or null if none specified | 68 // Path to private key file, or null if none specified |
69 std::string private_key_path_; | 69 std::string private_key_path_; |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(PackExtensionHandler); | 71 DISALLOW_COPY_AND_ASSIGN(PackExtensionHandler); |
72 }; | 72 }; |
73 | 73 |
74 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_PACK_EXTENSION_HANDLER_H_ | 74 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_PACK_EXTENSION_HANDLER_H_ |
OLD | NEW |