OLD | NEW |
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 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 | 695 |
695 // The RenderView is being constructed (message sent to the renderer process | 696 // The RenderView is being constructed (message sent to the renderer process |
696 // to construct a RenderView). Now is a good time to send other setup events | 697 // to construct a RenderView). Now is a good time to send other setup events |
697 // to the RenderView. This precedes any other commands to the RenderView. | 698 // to the RenderView. This precedes any other commands to the RenderView. |
698 virtual void RenderViewCreated(RenderViewHost* render_view_host) {} | 699 virtual void RenderViewCreated(RenderViewHost* render_view_host) {} |
699 | 700 |
700 // The RenderView has been constructed. | 701 // The RenderView has been constructed. |
701 virtual void RenderViewReady(RenderViewHost* render_view_host) {} | 702 virtual void RenderViewReady(RenderViewHost* render_view_host) {} |
702 | 703 |
703 // The RenderView died somehow (crashed or was killed by the user). | 704 // The RenderView died somehow (crashed or was killed by the user). |
704 virtual void RenderViewGone(RenderViewHost* render_view_host) {} | 705 virtual void RenderViewGone(RenderViewHost* render_view_host, |
| 706 base::TerminationStatus status, |
| 707 int error_code) {} |
705 | 708 |
706 // The RenderView is going to be deleted. This is called when each | 709 // The RenderView is going to be deleted. This is called when each |
707 // RenderView is going to be destroyed | 710 // RenderView is going to be destroyed |
708 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {} | 711 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {} |
709 | 712 |
710 // The RenderView was navigated to a different page. | 713 // The RenderView was navigated to a different page. |
711 virtual void DidNavigate(RenderViewHost* render_view_host, | 714 virtual void DidNavigate(RenderViewHost* render_view_host, |
712 const ViewHostMsg_FrameNavigate_Params& params) {} | 715 const ViewHostMsg_FrameNavigate_Params& params) {} |
713 | 716 |
714 // The state for the page changed and should be updated. | 717 // The state for the page changed and should be updated. |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
863 bool remember) {} | 866 bool remember) {} |
864 | 867 |
865 // Update the content restrictions, i.e. disable print/copy. | 868 // Update the content restrictions, i.e. disable print/copy. |
866 virtual void UpdateContentRestrictions(int restrictions) {} | 869 virtual void UpdateContentRestrictions(int restrictions) {} |
867 | 870 |
868 protected: | 871 protected: |
869 virtual ~RenderViewHostDelegate() {} | 872 virtual ~RenderViewHostDelegate() {} |
870 }; | 873 }; |
871 | 874 |
872 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 875 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |