| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "ui/gfx/native_widget_types.h" | 23 #include "ui/gfx/native_widget_types.h" |
| 24 #endif | 24 #endif |
| 25 | 25 |
| 26 class GURL; | 26 class GURL; |
| 27 | 27 |
| 28 namespace IPC { | 28 namespace IPC { |
| 29 class Message; | 29 class Message; |
| 30 } | 30 } |
| 31 | 31 |
| 32 namespace content { | 32 namespace content { |
| 33 class FrameTreeNode; |
| 33 class GeolocationServiceContext; | 34 class GeolocationServiceContext; |
| 34 class InterstitialPage; | 35 class InterstitialPage; |
| 35 class PageState; | 36 class PageState; |
| 36 class RenderFrameHost; | 37 class RenderFrameHost; |
| 37 class WakeLockServiceContext; | 38 class WakeLockServiceContext; |
| 38 class WebContents; | 39 class WebContents; |
| 39 struct AXEventNotificationDetails; | 40 struct AXEventNotificationDetails; |
| 40 struct ContextMenuParams; | 41 struct ContextMenuParams; |
| 41 struct FileChooserParams; | 42 struct FileChooserParams; |
| 42 struct TransitionLayerData; | 43 struct TransitionLayerData; |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 // | 178 // |
| 178 // TODO(alexmos): This method currently supports cross-process postMessage, | 179 // TODO(alexmos): This method currently supports cross-process postMessage, |
| 179 // where we may need to create any missing proxies for the message's source | 180 // where we may need to create any missing proxies for the message's source |
| 180 // frame and its opener chain. It currently exists in WebContents due to a | 181 // frame and its opener chain. It currently exists in WebContents due to a |
| 181 // special case for <webview> guests, but this logic should eventually be | 182 // special case for <webview> guests, but this logic should eventually be |
| 182 // moved down into RenderFrameProxyHost::RouteMessageEvent when <webview> | 183 // moved down into RenderFrameProxyHost::RouteMessageEvent when <webview> |
| 183 // refactoring for --site-per-process mode is further along. See | 184 // refactoring for --site-per-process mode is further along. See |
| 184 // https://crbug.com/330264. | 185 // https://crbug.com/330264. |
| 185 virtual void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) {} | 186 virtual void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) {} |
| 186 | 187 |
| 188 // Set the |node| frame as focused in the current FrameTree as well as |
| 189 // possibly changing focus in distinct but related inner/outer WebContents. |
| 190 virtual void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) {} |
| 191 |
| 187 // Creates a WebUI object for a frame navigating to |url|. If no WebUI | 192 // Creates a WebUI object for a frame navigating to |url|. If no WebUI |
| 188 // applies, returns null. | 193 // applies, returns null. |
| 189 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 194 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( |
| 190 const GURL& url); | 195 const GURL& url); |
| 191 | 196 |
| 192 protected: | 197 protected: |
| 193 virtual ~RenderFrameHostDelegate() {} | 198 virtual ~RenderFrameHostDelegate() {} |
| 194 }; | 199 }; |
| 195 | 200 |
| 196 } // namespace content | 201 } // namespace content |
| 197 | 202 |
| 198 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 203 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |