Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / ui / views / extensions / extension_dialog_observer.h
blob26acfe825e7277ef417440aaf4fce6a7e9200654
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.
5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_OBSERVER_H_
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_OBSERVER_H_
8 class ExtensionDialog;
10 // Observer to ExtensionDialog events.
11 class ExtensionDialogObserver {
12 public:
13 ExtensionDialogObserver();
14 virtual ~ExtensionDialogObserver();
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;
25 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_OBSERVER_H_