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_WIDGET_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
229 // focused WebContents. | 229 // focused WebContents. |
230 virtual RenderWidgetHostImpl* GetRenderWidgetHostWithPageFocus(); | 230 virtual RenderWidgetHostImpl* GetRenderWidgetHostWithPageFocus(); |
231 | 231 |
232 // In cases with multiple RenderWidgetHosts involved in rendering a page, only | 232 // In cases with multiple RenderWidgetHosts involved in rendering a page, only |
233 // one widget should be focused and active. This ensures that | 233 // one widget should be focused and active. This ensures that |
234 // |render_widget_host| is focused and that its owning WebContents is also | 234 // |render_widget_host| is focused and that its owning WebContents is also |
235 // the focused WebContents. | 235 // the focused WebContents. |
236 virtual void FocusOwningWebContents( | 236 virtual void FocusOwningWebContents( |
237 RenderWidgetHostImpl* render_widget_host) {} | 237 RenderWidgetHostImpl* render_widget_host) {} |
238 | 238 |
239 // Returns the eTLD+1 of the current page. | |
240 virtual std::string GetRapporCommittedUrl(); | |
ncarter (slow)
2016/12/01 22:33:32
As we were discussing before, this looks out of pl
Navid Zolghadr
2016/12/02 20:47:35
Sure. Sounds good. But why do I need RenderWidgetH
ncarter (slow)
2016/12/05 19:50:50
There can be arbitrarily many RenderWidgetHosts in
| |
241 | |
239 protected: | 242 protected: |
240 virtual ~RenderWidgetHostDelegate() {} | 243 virtual ~RenderWidgetHostDelegate() {} |
241 }; | 244 }; |
242 | 245 |
243 } // namespace content | 246 } // namespace content |
244 | 247 |
245 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 248 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
OLD | NEW |