| 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 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 | 664 |
| 664 // The RenderView is being constructed (message sent to the renderer process | 665 // The RenderView is being constructed (message sent to the renderer process |
| 665 // to construct a RenderView). Now is a good time to send other setup events | 666 // to construct a RenderView). Now is a good time to send other setup events |
| 666 // to the RenderView. This precedes any other commands to the RenderView. | 667 // to the RenderView. This precedes any other commands to the RenderView. |
| 667 virtual void RenderViewCreated(RenderViewHost* render_view_host) {} | 668 virtual void RenderViewCreated(RenderViewHost* render_view_host) {} |
| 668 | 669 |
| 669 // The RenderView has been constructed. | 670 // The RenderView has been constructed. |
| 670 virtual void RenderViewReady(RenderViewHost* render_view_host) {} | 671 virtual void RenderViewReady(RenderViewHost* render_view_host) {} |
| 671 | 672 |
| 672 // The RenderView died somehow (crashed or was killed by the user). | 673 // The RenderView died somehow (crashed or was killed by the user). |
| 673 virtual void RenderViewGone(RenderViewHost* render_view_host) {} | 674 virtual void RenderViewGone(RenderViewHost* render_view_host, |
| 675 base::TerminationStatus status, |
| 676 int error_code) {} |
| 674 | 677 |
| 675 // The RenderView is going to be deleted. This is called when each | 678 // The RenderView is going to be deleted. This is called when each |
| 676 // RenderView is going to be destroyed | 679 // RenderView is going to be destroyed |
| 677 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {} | 680 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {} |
| 678 | 681 |
| 679 // The RenderView was navigated to a different page. | 682 // The RenderView was navigated to a different page. |
| 680 virtual void DidNavigate(RenderViewHost* render_view_host, | 683 virtual void DidNavigate(RenderViewHost* render_view_host, |
| 681 const ViewHostMsg_FrameNavigate_Params& params) {} | 684 const ViewHostMsg_FrameNavigate_Params& params) {} |
| 682 | 685 |
| 683 // The state for the page changed and should be updated. | 686 // The state for the page changed and should be updated. |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 831 virtual void FocusedNodeChanged() {} | 834 virtual void FocusedNodeChanged() {} |
| 832 | 835 |
| 833 // The content being displayed is a PDF. | 836 // The content being displayed is a PDF. |
| 834 virtual void SetDisplayingPDFContent() {} | 837 virtual void SetDisplayingPDFContent() {} |
| 835 | 838 |
| 836 protected: | 839 protected: |
| 837 virtual ~RenderViewHostDelegate() {} | 840 virtual ~RenderViewHostDelegate() {} |
| 838 }; | 841 }; |
| 839 | 842 |
| 840 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 843 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |