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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 virtual void RenderViewTerminated(RenderViewHost* render_view_host, | 99 virtual void RenderViewTerminated(RenderViewHost* render_view_host, |
100 base::TerminationStatus status, | 100 base::TerminationStatus status, |
101 int error_code) {} | 101 int error_code) {} |
102 | 102 |
103 // The RenderView is going to be deleted. This is called when each | 103 // The RenderView is going to be deleted. This is called when each |
104 // RenderView is going to be destroyed | 104 // RenderView is going to be destroyed |
105 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {} | 105 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {} |
106 | 106 |
107 // The state for the page changed and should be updated. | 107 // The state for the page changed and should be updated. |
108 virtual void UpdateState(RenderViewHost* render_view_host, | 108 virtual void UpdateState(RenderViewHost* render_view_host, |
| 109 int32 rvh_page_id, // http://crbug.com/407376 |
109 int32 page_id, | 110 int32 page_id, |
110 const PageState& state) {} | 111 const PageState& state) {} |
111 | 112 |
112 // The destination URL has changed should be updated. | 113 // The destination URL has changed should be updated. |
113 virtual void UpdateTargetURL(const GURL& url) {} | 114 virtual void UpdateTargetURL(const GURL& url) {} |
114 | 115 |
115 // The page is trying to close the RenderView's representation in the client. | 116 // The page is trying to close the RenderView's representation in the client. |
116 virtual void Close(RenderViewHost* render_view_host) {} | 117 virtual void Close(RenderViewHost* render_view_host) {} |
117 | 118 |
118 // The page is trying to move the RenderView's representation in the client. | 119 // The page is trying to move the RenderView's representation in the client. |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 // created by the RenderViewHost. | 281 // created by the RenderViewHost. |
281 virtual FrameTree* GetFrameTree(); | 282 virtual FrameTree* GetFrameTree(); |
282 | 283 |
283 protected: | 284 protected: |
284 virtual ~RenderViewHostDelegate() {} | 285 virtual ~RenderViewHostDelegate() {} |
285 }; | 286 }; |
286 | 287 |
287 } // namespace content | 288 } // namespace content |
288 | 289 |
289 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 290 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |