| OLD | NEW |
| 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 129 |
| 130 // The RenderView is being constructed (message sent to the renderer process | 130 // The RenderView is being constructed (message sent to the renderer process |
| 131 // to construct a RenderView). Now is a good time to send other setup events | 131 // to construct a RenderView). Now is a good time to send other setup events |
| 132 // to the RenderView. This precedes any other commands to the RenderView. | 132 // to the RenderView. This precedes any other commands to the RenderView. |
| 133 virtual void RenderViewCreated(RenderViewHost* render_view_host) {} | 133 virtual void RenderViewCreated(RenderViewHost* render_view_host) {} |
| 134 | 134 |
| 135 // The RenderView has been constructed. | 135 // The RenderView has been constructed. |
| 136 virtual void RenderViewReady(RenderViewHost* render_view_host) {} | 136 virtual void RenderViewReady(RenderViewHost* render_view_host) {} |
| 137 | 137 |
| 138 // The RenderView died somehow (crashed or was killed by the user). | 138 // The RenderView died somehow (crashed or was killed by the user). |
| 139 virtual void RenderViewGone(RenderViewHost* render_view_host, | 139 virtual void RenderViewTerminated(RenderViewHost* render_view_host, |
| 140 base::TerminationStatus status, | 140 base::TerminationStatus status, |
| 141 int error_code) {} | 141 int error_code) {} |
| 142 | 142 |
| 143 // The RenderView is going to be deleted. This is called when each | 143 // The RenderView is going to be deleted. This is called when each |
| 144 // RenderView is going to be destroyed | 144 // RenderView is going to be destroyed |
| 145 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {} | 145 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {} |
| 146 | 146 |
| 147 // The RenderView started a provisional load for a given frame. | 147 // The RenderView started a provisional load for a given frame. |
| 148 virtual void DidStartProvisionalLoadForFrame( | 148 virtual void DidStartProvisionalLoadForFrame( |
| 149 RenderViewHost* render_view_host, | 149 RenderViewHost* render_view_host, |
| 150 int64 frame_id, | 150 int64 frame_id, |
| 151 int64 parent_frame_id, | 151 int64 parent_frame_id, |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 const MediaStreamRequest& request, | 416 const MediaStreamRequest& request, |
| 417 const MediaResponseCallback& callback) {} | 417 const MediaResponseCallback& callback) {} |
| 418 | 418 |
| 419 protected: | 419 protected: |
| 420 virtual ~RenderViewHostDelegate() {} | 420 virtual ~RenderViewHostDelegate() {} |
| 421 }; | 421 }; |
| 422 | 422 |
| 423 } // namespace content | 423 } // namespace content |
| 424 | 424 |
| 425 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 425 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |