Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Side by Side Diff: chrome/browser/ui/views/extensions/extension_dialog_observer.h

Issue 9360005: Handle termination/crashes of an extension hosted in the ExtensionDialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/extensions/extension_dialog.cc ('k') | chrome/browser/ui/views/select_file_dialog_extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698