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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 | 144 |
145 // The RenderView died somehow (crashed or was killed by the user). | 145 // The RenderView died somehow (crashed or was killed by the user). |
146 virtual void RenderViewTerminated(RenderViewHost* render_view_host, | 146 virtual void RenderViewTerminated(RenderViewHost* render_view_host, |
147 base::TerminationStatus status, | 147 base::TerminationStatus status, |
148 int error_code) {} | 148 int error_code) {} |
149 | 149 |
150 // The RenderView is going to be deleted. This is called when each | 150 // The RenderView is going to be deleted. This is called when each |
151 // RenderView is going to be destroyed | 151 // RenderView is going to be destroyed |
152 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {} | 152 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {} |
153 | 153 |
154 // The RenderView started a provisional load for a given frame. | |
155 virtual void DidStartProvisionalLoadForFrame( | |
156 RenderViewHost* render_view_host, | |
157 int64 frame_id, | |
158 int64 parent_frame_id, | |
159 bool main_frame, | |
160 const GURL& url) {} | |
161 | |
162 // The RenderView processed a redirect during a provisional load. | 154 // The RenderView processed a redirect during a provisional load. |
163 // | 155 // |
164 // TODO(creis): Remove this method and have the pre-rendering code listen to | 156 // TODO(creis): Remove this method and have the pre-rendering code listen to |
165 // WebContentsObserver::DidGetRedirectForResourceRequest instead. | 157 // WebContentsObserver::DidGetRedirectForResourceRequest instead. |
166 // See http://crbug.com/78512. | 158 // See http://crbug.com/78512. |
167 virtual void DidRedirectProvisionalLoad( | 159 virtual void DidRedirectProvisionalLoad( |
168 RenderViewHost* render_view_host, | 160 RenderViewHost* render_view_host, |
169 int32 page_id, | 161 int32 page_id, |
170 const GURL& source_url, | 162 const GURL& source_url, |
171 const GURL& target_url) {} | 163 const GURL& target_url) {} |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 // created by the RenderViewHost. | 447 // created by the RenderViewHost. |
456 virtual FrameTree* GetFrameTree(); | 448 virtual FrameTree* GetFrameTree(); |
457 | 449 |
458 protected: | 450 protected: |
459 virtual ~RenderViewHostDelegate() {} | 451 virtual ~RenderViewHostDelegate() {} |
460 }; | 452 }; |
461 | 453 |
462 } // namespace content | 454 } // namespace content |
463 | 455 |
464 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 456 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |