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 // AttemptToClosePage. This is called before a cross-site request or before | 83 // AttemptToClosePage. This is called before a cross-site request or before |
84 // a tab/window is closed (as indicated by the first parameter) to allow the | 84 // a tab/window is closed (as indicated by the first parameter) to allow the |
85 // appropriate renderer to approve or deny the request. |proceed| indicates | 85 // appropriate renderer to approve or deny the request. |proceed| indicates |
86 // whether the user chose to proceed. |proceed_time| is the time when the | 86 // whether the user chose to proceed. |proceed_time| is the time when the |
87 // request was allowed to proceed. | 87 // request was allowed to proceed. |
88 virtual void ShouldClosePage( | 88 virtual void ShouldClosePage( |
89 bool for_cross_site_transition, | 89 bool for_cross_site_transition, |
90 bool proceed, | 90 bool proceed, |
91 const base::TimeTicks& proceed_time) = 0; | 91 const base::TimeTicks& proceed_time) = 0; |
92 | 92 |
93 // Called by ResourceDispatcherHost when a response for a pending cross-site | 93 // This pending RenderViewHost is ready to commit a page. The delegate |
nasko
2013/06/06 15:41:50
nit: The pending?
Charlie Reis
2013/06/06 16:33:09
Done.
| |
94 // request is received. The ResourceDispatcherHost will pause the response | 94 // should ensure that the old RenderViewHost runs its unload handler. |
95 // until the onunload handler of the previous renderer is run. | 95 virtual void OnCrossSiteResponse( |
96 virtual void OnCrossSiteResponse(int new_render_process_host_id, | 96 RenderViewHost* pending_render_view_host, |
97 int new_request_id) = 0; | 97 const GlobalRequestID& global_request_id) = 0; |
98 | 98 |
99 protected: | 99 protected: |
100 virtual ~RendererManagement() {} | 100 virtual ~RendererManagement() {} |
101 }; | 101 }; |
102 | 102 |
103 // --------------------------------------------------------------------------- | 103 // --------------------------------------------------------------------------- |
104 | 104 |
105 // Returns the current delegate associated with a feature. May return NULL if | 105 // Returns the current delegate associated with a feature. May return NULL if |
106 // there is no corresponding delegate. | 106 // there is no corresponding delegate. |
107 virtual RenderViewHostDelegateView* GetDelegateView(); | 107 virtual RenderViewHostDelegateView* GetDelegateView(); |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
414 const MediaStreamRequest& request, | 414 const MediaStreamRequest& request, |
415 const MediaResponseCallback& callback) {} | 415 const MediaResponseCallback& callback) {} |
416 | 416 |
417 protected: | 417 protected: |
418 virtual ~RenderViewHostDelegate() {} | 418 virtual ~RenderViewHostDelegate() {} |
419 }; | 419 }; |
420 | 420 |
421 } // namespace content | 421 } // namespace content |
422 | 422 |
423 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 423 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |