OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 // whether the user chose to proceed. | 165 // whether the user chose to proceed. |
166 virtual void ShouldClosePage(bool for_cross_site_transition, | 166 virtual void ShouldClosePage(bool for_cross_site_transition, |
167 bool proceed) = 0; | 167 bool proceed) = 0; |
168 | 168 |
169 // Called by ResourceDispatcherHost when a response for a pending cross-site | 169 // Called by ResourceDispatcherHost when a response for a pending cross-site |
170 // request is received. The ResourceDispatcherHost will pause the response | 170 // request is received. The ResourceDispatcherHost will pause the response |
171 // until the onunload handler of the previous renderer is run. | 171 // until the onunload handler of the previous renderer is run. |
172 virtual void OnCrossSiteResponse(int new_render_process_host_id, | 172 virtual void OnCrossSiteResponse(int new_render_process_host_id, |
173 int new_request_id) = 0; | 173 int new_request_id) = 0; |
174 | 174 |
175 // Called the ResourceDispatcherHost's associate CrossSiteRequestHandler | |
176 // when a cross-site navigation has been canceled. | |
177 virtual void OnCrossSiteNavigationCanceled() = 0; | |
178 | |
179 protected: | 175 protected: |
180 virtual ~RendererManagement() {} | 176 virtual ~RendererManagement() {} |
181 }; | 177 }; |
182 | 178 |
183 // --------------------------------------------------------------------------- | 179 // --------------------------------------------------------------------------- |
184 | 180 |
185 // Returns the current delegate associated with a feature. May return NULL if | 181 // Returns the current delegate associated with a feature. May return NULL if |
186 // there is no corresponding delegate. | 182 // there is no corresponding delegate. |
187 virtual View* GetViewDelegate(); | 183 virtual View* GetViewDelegate(); |
188 virtual RendererManagement* GetRendererManagementDelegate(); | 184 virtual RendererManagement* GetRendererManagementDelegate(); |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 virtual void RequestToLockMouse() {} | 381 virtual void RequestToLockMouse() {} |
386 | 382 |
387 // Notification that the view has lost the mouse lock. | 383 // Notification that the view has lost the mouse lock. |
388 virtual void LostMouseLock() {} | 384 virtual void LostMouseLock() {} |
389 | 385 |
390 protected: | 386 protected: |
391 virtual ~RenderViewHostDelegate() {} | 387 virtual ~RenderViewHostDelegate() {} |
392 }; | 388 }; |
393 | 389 |
394 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 390 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |