| 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_INSTALL_PROMPT_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // Do not modify existing values and add new values only to the end. | 56 // Do not modify existing values and add new values only to the end. |
| 57 enum PromptType { | 57 enum PromptType { |
| 58 UNSET_PROMPT_TYPE = -1, | 58 UNSET_PROMPT_TYPE = -1, |
| 59 INSTALL_PROMPT = 0, | 59 INSTALL_PROMPT = 0, |
| 60 INLINE_INSTALL_PROMPT, | 60 INLINE_INSTALL_PROMPT, |
| 61 BUNDLE_INSTALL_PROMPT, | 61 BUNDLE_INSTALL_PROMPT, |
| 62 RE_ENABLE_PROMPT, | 62 RE_ENABLE_PROMPT, |
| 63 PERMISSIONS_PROMPT, | 63 PERMISSIONS_PROMPT, |
| 64 EXTERNAL_INSTALL_PROMPT, | 64 EXTERNAL_INSTALL_PROMPT, |
| 65 POST_INSTALL_PERMISSIONS_PROMPT, | 65 POST_INSTALL_PERMISSIONS_PROMPT, |
| 66 LAUNCH_PROMPT, | 66 LAUNCH_PROMPT_DEPRECATED, |
| 67 REMOTE_INSTALL_PROMPT, | 67 REMOTE_INSTALL_PROMPT, |
| 68 REPAIR_PROMPT, | 68 REPAIR_PROMPT, |
| 69 DELEGATED_PERMISSIONS_PROMPT, | 69 DELEGATED_PERMISSIONS_PROMPT, |
| 70 DELEGATED_BUNDLE_PERMISSIONS_PROMPT, | 70 DELEGATED_BUNDLE_PERMISSIONS_PROMPT, |
| 71 NUM_PROMPT_TYPES | 71 NUM_PROMPT_TYPES |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 // The last prompt type to display; only used for testing. | 74 // The last prompt type to display; only used for testing. |
| 75 static PromptType g_last_prompt_type_for_tests; | 75 static PromptType g_last_prompt_type_for_tests; |
| 76 | 76 |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 Delegate* delegate_; | 465 Delegate* delegate_; |
| 466 | 466 |
| 467 // A pre-filled prompt. | 467 // A pre-filled prompt. |
| 468 scoped_refptr<Prompt> prompt_; | 468 scoped_refptr<Prompt> prompt_; |
| 469 | 469 |
| 470 // Used to show the confirm dialog. | 470 // Used to show the confirm dialog. |
| 471 ShowDialogCallback show_dialog_callback_; | 471 ShowDialogCallback show_dialog_callback_; |
| 472 }; | 472 }; |
| 473 | 473 |
| 474 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ | 474 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ |
| OLD | NEW |