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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
12 #include "content/browser/webui/web_ui_impl.h" | |
13 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
14 #include "content/common/frame_message_enums.h" | 13 #include "content/common/frame_message_enums.h" |
15 #include "content/public/browser/site_instance.h" | 14 #include "content/public/browser/site_instance.h" |
16 #include "content/public/common/javascript_message_type.h" | 15 #include "content/public/common/javascript_message_type.h" |
17 #include "content/public/common/media_stream_request.h" | 16 #include "content/public/common/media_stream_request.h" |
18 #include "net/http/http_response_headers.h" | 17 #include "net/http/http_response_headers.h" |
19 | 18 |
20 #if defined(OS_WIN) | 19 #if defined(OS_WIN) |
21 #include "ui/gfx/native_widget_types.h" | 20 #include "ui/gfx/native_widget_types.h" |
22 #endif | 21 #endif |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 // | 160 // |
162 // TODO(alexmos): This method currently supports cross-process postMessage, | 161 // TODO(alexmos): This method currently supports cross-process postMessage, |
163 // where we may need to create any missing proxies for the message's source | 162 // where we may need to create any missing proxies for the message's source |
164 // frame and its opener chain. It currently exists in WebContents due to a | 163 // frame and its opener chain. It currently exists in WebContents due to a |
165 // special case for <webview> guests, but this logic should eventually be | 164 // special case for <webview> guests, but this logic should eventually be |
166 // moved down into RenderFrameProxyHost::RouteMessageEvent when <webview> | 165 // moved down into RenderFrameProxyHost::RouteMessageEvent when <webview> |
167 // refactoring for --site-per-process mode is further along. See | 166 // refactoring for --site-per-process mode is further along. See |
168 // https://crbug.com/330264. | 167 // https://crbug.com/330264. |
169 virtual void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) {} | 168 virtual void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) {} |
170 | 169 |
171 // Creates a WebUI object for a frame navigating to the given URL. If no WebUI | |
172 // applies, returns null. | |
173 virtual scoped_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(const GURL& url); | |
174 | |
175 #if defined(OS_WIN) | 170 #if defined(OS_WIN) |
176 // Returns the frame's parent's NativeViewAccessible. | 171 // Returns the frame's parent's NativeViewAccessible. |
177 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 172 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
178 #endif | 173 #endif |
179 | 174 |
180 protected: | 175 protected: |
181 virtual ~RenderFrameHostDelegate() {} | 176 virtual ~RenderFrameHostDelegate() {} |
182 }; | 177 }; |
183 | 178 |
184 } // namespace content | 179 } // namespace content |
185 | 180 |
186 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 181 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
OLD | NEW |