| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_VIEWS_EXTENSIONS_EXTENSION_DIALOG_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_OBSERVER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_OBSERVER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 class ExtensionDialog; | 9 class ExtensionDialog; |
| 10 | 10 |
| 11 // Observer to ExtensionDialog events. | 11 // Observer to ExtensionDialog events. |
| 12 class ExtensionDialogObserver { | 12 class ExtensionDialogObserver { |
| 13 public: | 13 public: |
| 14 ExtensionDialogObserver(); | 14 ExtensionDialogObserver(); |
| 15 virtual ~ExtensionDialogObserver(); | 15 virtual ~ExtensionDialogObserver(); |
| 16 | 16 |
| 17 // Called when the ExtensionDialog is closing. Note that it | 17 // Called when the ExtensionDialog is closing. Note that it |
| 18 // is ref-counted, and thus will be released shortly after | 18 // is ref-counted, and thus will be released shortly after |
| 19 // making this delegate call. | 19 // making this delegate call. |
| 20 virtual void ExtensionDialogClosing(ExtensionDialog* popup) = 0; | 20 virtual void ExtensionDialogClosing(ExtensionDialog* popup) = 0; |
| 21 // Called in case the extension hosted by the extension dialog is |
| 22 // terminated, e.g. if the extension crashes. |
| 23 virtual void ExtensionTerminated(ExtensionDialog* popup) = 0; |
| 21 }; | 24 }; |
| 22 | 25 |
| 23 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_OBSERVER_H_ | 26 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_OBSERVER_H_ |
| OLD | NEW |