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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 // created by the RenderViewHost. | 443 // created by the RenderViewHost. |
452 virtual FrameTree* GetFrameTree(); | 444 virtual FrameTree* GetFrameTree(); |
453 | 445 |
454 protected: | 446 protected: |
455 virtual ~RenderViewHostDelegate() {} | 447 virtual ~RenderViewHostDelegate() {} |
456 }; | 448 }; |
457 | 449 |
458 } // namespace content | 450 } // namespace content |
459 | 451 |
460 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 452 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |