| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 namespace gfx { | 26 namespace gfx { |
| 27 class Rect; | 27 class Rect; |
| 28 class Size; | 28 class Size; |
| 29 } | 29 } |
| 30 | 30 |
| 31 namespace content { | 31 namespace content { |
| 32 | 32 |
| 33 class BrowserContext; | 33 class BrowserContext; |
| 34 class FrameTree; | 34 class FrameTree; |
| 35 class PageState; | |
| 36 class RenderViewHost; | 35 class RenderViewHost; |
| 37 class RenderViewHostImpl; | 36 class RenderViewHostImpl; |
| 38 class RenderViewHostDelegateView; | 37 class RenderViewHostDelegateView; |
| 39 class SessionStorageNamespace; | 38 class SessionStorageNamespace; |
| 40 class SiteInstance; | 39 class SiteInstance; |
| 41 class WebContents; | 40 class WebContents; |
| 42 struct RendererPreferences; | 41 struct RendererPreferences; |
| 43 | 42 |
| 44 // | 43 // |
| 45 // RenderViewHostDelegate | 44 // RenderViewHostDelegate |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // The process containing the RenderView exited somehow (either cleanly, | 77 // The process containing the RenderView exited somehow (either cleanly, |
| 79 // crash, or user kill). | 78 // crash, or user kill). |
| 80 virtual void RenderViewTerminated(RenderViewHost* render_view_host, | 79 virtual void RenderViewTerminated(RenderViewHost* render_view_host, |
| 81 base::TerminationStatus status, | 80 base::TerminationStatus status, |
| 82 int error_code) {} | 81 int error_code) {} |
| 83 | 82 |
| 84 // The RenderView is going to be deleted. This is called when each | 83 // The RenderView is going to be deleted. This is called when each |
| 85 // RenderView is going to be destroyed | 84 // RenderView is going to be destroyed |
| 86 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {} | 85 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {} |
| 87 | 86 |
| 88 // The state for the page changed and should be updated. | |
| 89 virtual void UpdateState(RenderViewHost* render_view_host, | |
| 90 const PageState& state) {} | |
| 91 | |
| 92 // The destination URL has changed should be updated. | 87 // The destination URL has changed should be updated. |
| 93 virtual void UpdateTargetURL(RenderViewHost* render_view_host, | 88 virtual void UpdateTargetURL(RenderViewHost* render_view_host, |
| 94 const GURL& url) {} | 89 const GURL& url) {} |
| 95 | 90 |
| 96 // The page is trying to close the RenderView's representation in the client. | 91 // The page is trying to close the RenderView's representation in the client. |
| 97 virtual void Close(RenderViewHost* render_view_host) {} | 92 virtual void Close(RenderViewHost* render_view_host) {} |
| 98 | 93 |
| 99 // The page is trying to move the RenderView's representation in the client. | 94 // The page is trying to move the RenderView's representation in the client. |
| 100 virtual void RequestMove(const gfx::Rect& new_bounds) {} | 95 virtual void RequestMove(const gfx::Rect& new_bounds) {} |
| 101 | 96 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 // the focused RenderWidget. | 193 // the focused RenderWidget. |
| 199 virtual void ClearFocusedElement() {} | 194 virtual void ClearFocusedElement() {} |
| 200 | 195 |
| 201 protected: | 196 protected: |
| 202 virtual ~RenderViewHostDelegate() {} | 197 virtual ~RenderViewHostDelegate() {} |
| 203 }; | 198 }; |
| 204 | 199 |
| 205 } // namespace content | 200 } // namespace content |
| 206 | 201 |
| 207 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 202 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |