Chromium Code Reviews| 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 TransitionLayerData; | 42 struct TransitionLayerData; |
| 42 | 43 |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 172 // | 173 // |
| 173 // TODO(alexmos): This method currently supports cross-process postMessage, | 174 // TODO(alexmos): This method currently supports cross-process postMessage, |
| 174 // where we may need to create any missing proxies for the message's source | 175 // where we may need to create any missing proxies for the message's source |
| 175 // frame and its opener chain. It currently exists in WebContents due to a | 176 // frame and its opener chain. It currently exists in WebContents due to a |
| 176 // special case for <webview> guests, but this logic should eventually be | 177 // special case for <webview> guests, but this logic should eventually be |
| 177 // moved down into RenderFrameProxyHost::RouteMessageEvent when <webview> | 178 // moved down into RenderFrameProxyHost::RouteMessageEvent when <webview> |
| 178 // refactoring for --site-per-process mode is further along. See | 179 // refactoring for --site-per-process mode is further along. See |
| 179 // https://crbug.com/330264. | 180 // https://crbug.com/330264. |
| 180 virtual void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) {} | 181 virtual void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) {} |
| 181 | 182 |
| 183 virtual void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source){}; | |
|
lfg
2016/05/06 21:23:33
Add a comment with a description of the interface.
avallee
2016/05/11 18:26:11
Done.
| |
| 184 | |
| 182 // Creates a WebUI object for a frame navigating to |url|. If no WebUI | 185 // Creates a WebUI object for a frame navigating to |url|. If no WebUI |
| 183 // applies, returns null. | 186 // applies, returns null. |
| 184 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 187 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( |
| 185 const GURL& url); | 188 const GURL& url); |
| 186 | 189 |
| 187 protected: | 190 protected: |
| 188 virtual ~RenderFrameHostDelegate() {} | 191 virtual ~RenderFrameHostDelegate() {} |
| 189 }; | 192 }; |
| 190 | 193 |
| 191 } // namespace content | 194 } // namespace content |
| 192 | 195 |
| 193 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 196 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |