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

Side by Side Diff: chrome/browser/renderer_host/render_view_host_delegate.h

Issue 5172009: This adds some plumbing for propagating the reason for a renderer's death (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Final review changes Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/process_util.h"
13 #include "base/ref_counted.h" 14 #include "base/ref_counted.h"
14 #include "base/string16.h" 15 #include "base/string16.h"
15 #include "chrome/common/content_settings_types.h" 16 #include "chrome/common/content_settings_types.h"
16 #include "chrome/common/dom_storage_common.h" 17 #include "chrome/common/dom_storage_common.h"
17 #include "chrome/common/translate_errors.h" 18 #include "chrome/common/translate_errors.h"
18 #include "chrome/common/view_types.h" 19 #include "chrome/common/view_types.h"
19 #include "chrome/common/window_container_type.h" 20 #include "chrome/common/window_container_type.h"
20 #include "net/base/load_states.h" 21 #include "net/base/load_states.h"
21 #include "third_party/WebKit/WebKit/chromium/public/WebDragOperation.h" 22 #include "third_party/WebKit/WebKit/chromium/public/WebDragOperation.h"
22 #include "third_party/WebKit/WebKit/chromium/public/WebPopupType.h" 23 #include "third_party/WebKit/WebKit/chromium/public/WebPopupType.h"
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 705
705 // The RenderView is being constructed (message sent to the renderer process 706 // The RenderView is being constructed (message sent to the renderer process
706 // to construct a RenderView). Now is a good time to send other setup events 707 // to construct a RenderView). Now is a good time to send other setup events
707 // to the RenderView. This precedes any other commands to the RenderView. 708 // to the RenderView. This precedes any other commands to the RenderView.
708 virtual void RenderViewCreated(RenderViewHost* render_view_host) {} 709 virtual void RenderViewCreated(RenderViewHost* render_view_host) {}
709 710
710 // The RenderView has been constructed. 711 // The RenderView has been constructed.
711 virtual void RenderViewReady(RenderViewHost* render_view_host) {} 712 virtual void RenderViewReady(RenderViewHost* render_view_host) {}
712 713
713 // The RenderView died somehow (crashed or was killed by the user). 714 // The RenderView died somehow (crashed or was killed by the user).
714 virtual void RenderViewGone(RenderViewHost* render_view_host) {} 715 virtual void RenderViewGone(RenderViewHost* render_view_host,
716 base::TerminationStatus status,
717 int error_code) {}
715 718
716 // The RenderView is going to be deleted. This is called when each 719 // The RenderView is going to be deleted. This is called when each
717 // RenderView is going to be destroyed 720 // RenderView is going to be destroyed
718 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {} 721 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {}
719 722
720 // The RenderView was navigated to a different page. 723 // The RenderView was navigated to a different page.
721 virtual void DidNavigate(RenderViewHost* render_view_host, 724 virtual void DidNavigate(RenderViewHost* render_view_host,
722 const ViewHostMsg_FrameNavigate_Params& params) {} 725 const ViewHostMsg_FrameNavigate_Params& params) {}
723 726
724 // The state for the page changed and should be updated. 727 // The state for the page changed and should be updated.
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 bool remember) {} 876 bool remember) {}
874 877
875 // Update the content restrictions, i.e. disable print/copy. 878 // Update the content restrictions, i.e. disable print/copy.
876 virtual void UpdateContentRestrictions(int restrictions) {} 879 virtual void UpdateContentRestrictions(int restrictions) {}
877 880
878 protected: 881 protected:
879 virtual ~RenderViewHostDelegate() {} 882 virtual ~RenderViewHostDelegate() {}
880 }; 883 };
881 884
882 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 885 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.cc ('k') | chrome/browser/renderer_host/render_widget_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698