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 28 matching lines...) Expand all Loading... |
39 | 39 |
40 namespace gfx { | 40 namespace gfx { |
41 class Point; | 41 class Point; |
42 class Rect; | 42 class Rect; |
43 class Size; | 43 class Size; |
44 } | 44 } |
45 | 45 |
46 namespace content { | 46 namespace content { |
47 | 47 |
48 class BrowserContext; | 48 class BrowserContext; |
| 49 class CrossSiteTransferringRequest; |
49 class FrameTree; | 50 class FrameTree; |
50 class PageState; | 51 class PageState; |
51 class RenderViewHost; | 52 class RenderViewHost; |
52 class RenderViewHostDelegateView; | 53 class RenderViewHostDelegateView; |
53 class SessionStorageNamespace; | 54 class SessionStorageNamespace; |
54 class SiteInstance; | 55 class SiteInstance; |
55 class WebContents; | 56 class WebContents; |
56 class WebContentsImpl; | 57 class WebContentsImpl; |
57 struct FileChooserParams; | 58 struct FileChooserParams; |
58 struct GlobalRequestID; | 59 struct GlobalRequestID; |
(...skipping 27 matching lines...) Expand all Loading... |
86 // whether the user chose to proceed. |proceed_time| is the time when the | 87 // whether the user chose to proceed. |proceed_time| is the time when the |
87 // request was allowed to proceed. | 88 // request was allowed to proceed. |
88 virtual void ShouldClosePage( | 89 virtual void ShouldClosePage( |
89 bool for_cross_site_transition, | 90 bool for_cross_site_transition, |
90 bool proceed, | 91 bool proceed, |
91 const base::TimeTicks& proceed_time) = 0; | 92 const base::TimeTicks& proceed_time) = 0; |
92 | 93 |
93 // The |pending_render_view_host| is ready to commit a page. The delegate | 94 // The |pending_render_view_host| is ready to commit a page. The delegate |
94 // should ensure that the old RenderViewHost runs its unload handler first | 95 // should ensure that the old RenderViewHost runs its unload handler first |
95 // and determine whether a RenderViewHost transfer is needed. | 96 // and determine whether a RenderViewHost transfer is needed. |
| 97 // |cross_site_transferring_request| is NULL if a request is not being |
| 98 // transferred between renderers. |
96 virtual void OnCrossSiteResponse( | 99 virtual void OnCrossSiteResponse( |
97 RenderViewHost* pending_render_view_host, | 100 RenderViewHost* pending_render_view_host, |
98 const GlobalRequestID& global_request_id, | 101 const GlobalRequestID& global_request_id, |
99 bool is_transfer, | 102 scoped_ptr<CrossSiteTransferringRequest> |
| 103 cross_site_transferring_request, |
100 const std::vector<GURL>& transfer_url_chain, | 104 const std::vector<GURL>& transfer_url_chain, |
101 const Referrer& referrer, | 105 const Referrer& referrer, |
102 PageTransition page_transition, | 106 PageTransition page_transition, |
103 int64 frame_id, | 107 int64 frame_id, |
104 bool should_replace_current_entry) = 0; | 108 bool should_replace_current_entry) = 0; |
105 | 109 |
106 protected: | 110 protected: |
107 virtual ~RendererManagement() {} | 111 virtual ~RendererManagement() {} |
108 }; | 112 }; |
109 | 113 |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 // created by the RenderViewHost. | 404 // created by the RenderViewHost. |
401 virtual FrameTree* GetFrameTree(); | 405 virtual FrameTree* GetFrameTree(); |
402 | 406 |
403 protected: | 407 protected: |
404 virtual ~RenderViewHostDelegate() {} | 408 virtual ~RenderViewHostDelegate() {} |
405 }; | 409 }; |
406 | 410 |
407 } // namespace content | 411 } // namespace content |
408 | 412 |
409 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 413 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |