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