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

Side by Side Diff: chrome/browser/views/extensions/extension_view.h

Issue 173314: Fix "crashed extension" infobar browser crashes. (Closed)
Patch Set: Created 11 years, 4 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
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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_VIEWS_EXTENSIONS_EXTENSION_VIEW_H_ 5 #ifndef CHROME_BROWSER_VIEWS_EXTENSIONS_EXTENSION_VIEW_H_
6 #define CHROME_BROWSER_VIEWS_EXTENSIONS_EXTENSION_VIEW_H_ 6 #define CHROME_BROWSER_VIEWS_EXTENSIONS_EXTENSION_VIEW_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // Sets the container for this view. 52 // Sets the container for this view.
53 void SetContainer(ExtensionContainer* container) { container_ = container; } 53 void SetContainer(ExtensionContainer* container) { container_ = container; }
54 54
55 // Overridden from views::NativeViewHost: 55 // Overridden from views::NativeViewHost:
56 virtual void SetVisible(bool is_visible); 56 virtual void SetVisible(bool is_visible);
57 virtual void DidChangeBounds(const gfx::Rect& previous, 57 virtual void DidChangeBounds(const gfx::Rect& previous,
58 const gfx::Rect& current); 58 const gfx::Rect& current);
59 virtual void ViewHierarchyChanged(bool is_add, 59 virtual void ViewHierarchyChanged(bool is_add,
60 views::View *parent, views::View *child); 60 views::View *parent, views::View *child);
61 61
62 // Call after extension process crash to re-initialize view, so that
63 // extension content can be rendered again.
64 void RecoverCrashedExtension();
65
66 private: 62 private:
67 friend class ExtensionHost; 63 friend class ExtensionHost;
68 64
69 // Initializes the RenderWidgetHostView for this object. 65 // Initializes the RenderWidgetHostView for this object.
70 void CreateWidgetHostView(); 66 void CreateWidgetHostView();
71 67
72 // We wait to show the ExtensionView until several things have loaded. 68 // We wait to show the ExtensionView until several things have loaded.
73 void ShowIfCompletelyLoaded(); 69 void ShowIfCompletelyLoaded();
74 70
75 // Restore object to initial state. Called on shutdown or after a renderer 71 // Restore object to initial state. Called on shutdown or after a renderer
(...skipping 28 matching lines...) Expand all
104 // Whether this extension view is clipped. 100 // Whether this extension view is clipped.
105 bool is_clipped_; 101 bool is_clipped_;
106 102
107 // Whether this view is currently displaying in toolstrip mode. 103 // Whether this view is currently displaying in toolstrip mode.
108 bool is_toolstrip_; 104 bool is_toolstrip_;
109 105
110 DISALLOW_COPY_AND_ASSIGN(ExtensionView); 106 DISALLOW_COPY_AND_ASSIGN(ExtensionView);
111 }; 107 };
112 108
113 #endif // CHROME_BROWSER_VIEWS_EXTENSIONS_EXTENSION_VIEW_H_ 109 #endif // CHROME_BROWSER_VIEWS_EXTENSIONS_EXTENSION_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extensions_service.cc ('k') | chrome/browser/views/extensions/extension_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698