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

Side by Side Diff: chrome/browser/ui/sad_tab_helper.h

Issue 18339006: Rename RenderViewGone IPC/methods to better reflect reality (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes for reviews by creis@ and palmer@. Created 7 years, 5 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
« no previous file with comments | « chrome/browser/ui/panels/panel_host.cc ('k') | chrome/browser/ui/sad_tab_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_SAD_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_UI_SAD_TAB_HELPER_H_
6 #define CHROME_BROWSER_UI_SAD_TAB_HELPER_H_ 6 #define CHROME_BROWSER_UI_SAD_TAB_HELPER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 16 matching lines...) Expand all
27 chrome::SadTab* sad_tab() { return sad_tab_.get(); } 27 chrome::SadTab* sad_tab() { return sad_tab_.get(); }
28 28
29 private: 29 private:
30 friend class content::WebContentsUserData<SadTabHelper>; 30 friend class content::WebContentsUserData<SadTabHelper>;
31 31
32 explicit SadTabHelper(content::WebContents* web_contents); 32 explicit SadTabHelper(content::WebContents* web_contents);
33 33
34 void InstallSadTab(base::TerminationStatus status); 34 void InstallSadTab(base::TerminationStatus status);
35 35
36 // Overridden from content::WebContentsObserver: 36 // Overridden from content::WebContentsObserver:
37 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; 37 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE;
38 38
39 // Overridden from content::NotificationObserver: 39 // Overridden from content::NotificationObserver:
40 virtual void Observe(int type, 40 virtual void Observe(int type,
41 const content::NotificationSource& source, 41 const content::NotificationSource& source,
42 const content::NotificationDetails& details) OVERRIDE; 42 const content::NotificationDetails& details) OVERRIDE;
43 43
44 // Used to get notifications about renderers coming and going. 44 // Used to get notifications about renderers coming and going.
45 content::NotificationRegistrar registrar_; 45 content::NotificationRegistrar registrar_;
46 46
47 scoped_ptr<chrome::SadTab> sad_tab_; 47 scoped_ptr<chrome::SadTab> sad_tab_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(SadTabHelper); 49 DISALLOW_COPY_AND_ASSIGN(SadTabHelper);
50 }; 50 };
51 51
52 #endif // CHROME_BROWSER_UI_SAD_TAB_HELPER_H_ 52 #endif // CHROME_BROWSER_UI_SAD_TAB_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_host.cc ('k') | chrome/browser/ui/sad_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698