| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // a tab/window is closed (as indicated by the first parameter) to allow the | 83 // a tab/window is closed (as indicated by the first parameter) to allow the |
| 84 // appropriate renderer to approve or deny the request. |proceed| indicates | 84 // appropriate renderer to approve or deny the request. |proceed| indicates |
| 85 // whether the user chose to proceed. |proceed_time| is the time when the | 85 // whether the user chose to proceed. |proceed_time| is the time when the |
| 86 // request was allowed to proceed. | 86 // request was allowed to proceed. |
| 87 virtual void ShouldClosePage( | 87 virtual void ShouldClosePage( |
| 88 bool for_cross_site_transition, | 88 bool for_cross_site_transition, |
| 89 bool proceed, | 89 bool proceed, |
| 90 const base::TimeTicks& proceed_time) = 0; | 90 const base::TimeTicks& proceed_time) = 0; |
| 91 | 91 |
| 92 // The |pending_render_view_host| is ready to commit a page. The delegate | 92 // The |pending_render_view_host| is ready to commit a page. The delegate |
| 93 // should ensure that the old RenderViewHost runs its unload handler first. | 93 // should ensure that the old RenderViewHost runs its unload handler first |
| 94 // and determine whether a RenderViewHost transfer is needed. |
| 94 virtual void OnCrossSiteResponse( | 95 virtual void OnCrossSiteResponse( |
| 95 RenderViewHost* pending_render_view_host, | 96 RenderViewHost* pending_render_view_host, |
| 96 const GlobalRequestID& global_request_id) = 0; | 97 const GlobalRequestID& global_request_id, |
| 98 bool is_transfer, |
| 99 const GURL& transfer_url, |
| 100 const Referrer& referrer, |
| 101 int64 frame_id) = 0; |
| 97 | 102 |
| 98 protected: | 103 protected: |
| 99 virtual ~RendererManagement() {} | 104 virtual ~RendererManagement() {} |
| 100 }; | 105 }; |
| 101 | 106 |
| 102 // --------------------------------------------------------------------------- | 107 // --------------------------------------------------------------------------- |
| 103 | 108 |
| 104 // Returns the current delegate associated with a feature. May return NULL if | 109 // Returns the current delegate associated with a feature. May return NULL if |
| 105 // there is no corresponding delegate. | 110 // there is no corresponding delegate. |
| 106 virtual RenderViewHostDelegateView* GetDelegateView(); | 111 virtual RenderViewHostDelegateView* GetDelegateView(); |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 const MediaStreamRequest& request, | 417 const MediaStreamRequest& request, |
| 413 const MediaResponseCallback& callback) {} | 418 const MediaResponseCallback& callback) {} |
| 414 | 419 |
| 415 protected: | 420 protected: |
| 416 virtual ~RenderViewHostDelegate() {} | 421 virtual ~RenderViewHostDelegate() {} |
| 417 }; | 422 }; |
| 418 | 423 |
| 419 } // namespace content | 424 } // namespace content |
| 420 | 425 |
| 421 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 426 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |