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

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: Created 10 years, 1 month 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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 684
684 // The RenderView is being constructed (message sent to the renderer process 685 // The RenderView is being constructed (message sent to the renderer process
685 // to construct a RenderView). Now is a good time to send other setup events 686 // to construct a RenderView). Now is a good time to send other setup events
686 // to the RenderView. This precedes any other commands to the RenderView. 687 // to the RenderView. This precedes any other commands to the RenderView.
687 virtual void RenderViewCreated(RenderViewHost* render_view_host) {} 688 virtual void RenderViewCreated(RenderViewHost* render_view_host) {}
688 689
689 // The RenderView has been constructed. 690 // The RenderView has been constructed.
690 virtual void RenderViewReady(RenderViewHost* render_view_host) {} 691 virtual void RenderViewReady(RenderViewHost* render_view_host) {}
691 692
692 // The RenderView died somehow (crashed or was killed by the user). 693 // The RenderView died somehow (crashed or was killed by the user).
693 virtual void RenderViewGone(RenderViewHost* render_view_host) {} 694 virtual void RenderViewGone(RenderViewHost* render_view_host,
695 base::TerminationStatus status,
696 int error_code) {}
694 697
695 // The RenderView is going to be deleted. This is called when each 698 // The RenderView is going to be deleted. This is called when each
696 // RenderView is going to be destroyed 699 // RenderView is going to be destroyed
697 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {} 700 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {}
698 701
699 // The RenderView was navigated to a different page. 702 // The RenderView was navigated to a different page.
700 virtual void DidNavigate(RenderViewHost* render_view_host, 703 virtual void DidNavigate(RenderViewHost* render_view_host,
701 const ViewHostMsg_FrameNavigate_Params& params) {} 704 const ViewHostMsg_FrameNavigate_Params& params) {}
702 705
703 // The state for the page changed and should be updated. 706 // The state for the page changed and should be updated.
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 bool remember) {} 855 bool remember) {}
853 856
854 // Update the content restrictions, i.e. disable print/copy. 857 // Update the content restrictions, i.e. disable print/copy.
855 virtual void UpdateContentRestrictions(int restrictions) {} 858 virtual void UpdateContentRestrictions(int restrictions) {}
856 859
857 protected: 860 protected:
858 virtual ~RenderViewHostDelegate() {} 861 virtual ~RenderViewHostDelegate() {}
859 }; 862 };
860 863
861 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 864 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698