| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 int error_code) {} | 145 int error_code) {} |
| 146 | 146 |
| 147 // The RenderView is going to be deleted. This is called when each | 147 // The RenderView is going to be deleted. This is called when each |
| 148 // RenderView is going to be destroyed | 148 // RenderView is going to be destroyed |
| 149 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {} | 149 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {} |
| 150 | 150 |
| 151 // The RenderView started a provisional load for a given frame. | 151 // The RenderView started a provisional load for a given frame. |
| 152 virtual void DidStartProvisionalLoadForFrame( | 152 virtual void DidStartProvisionalLoadForFrame( |
| 153 RenderViewHost* render_view_host, | 153 RenderViewHost* render_view_host, |
| 154 int64 frame_id, | 154 int64 frame_id, |
| 155 int64 parent_frame_id, |
| 155 bool main_frame, | 156 bool main_frame, |
| 156 const GURL& opener_url, | 157 const GURL& opener_url, |
| 157 const GURL& url) {} | 158 const GURL& url) {} |
| 158 | 159 |
| 159 // The RenderView processed a redirect during a provisional load. | 160 // The RenderView processed a redirect during a provisional load. |
| 160 // | 161 // |
| 161 // TODO(creis): Remove this method and have the pre-rendering code listen to | 162 // TODO(creis): Remove this method and have the pre-rendering code listen to |
| 162 // the ResourceDispatcherHost's RESOURCE_RECEIVED_REDIRECT notification | 163 // the ResourceDispatcherHost's RESOURCE_RECEIVED_REDIRECT notification |
| 163 // instead. See http://crbug.com/78512. | 164 // instead. See http://crbug.com/78512. |
| 164 virtual void DidRedirectProvisionalLoad( | 165 virtual void DidRedirectProvisionalLoad( |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 virtual void RemoveLayer(WebKit::WebLayer* layer) {} | 421 virtual void RemoveLayer(WebKit::WebLayer* layer) {} |
| 421 #endif | 422 #endif |
| 422 | 423 |
| 423 protected: | 424 protected: |
| 424 virtual ~RenderViewHostDelegate() {} | 425 virtual ~RenderViewHostDelegate() {} |
| 425 }; | 426 }; |
| 426 | 427 |
| 427 } // namespace content | 428 } // namespace content |
| 428 | 429 |
| 429 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 430 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |