Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: content/browser/frame_host/render_frame_host_delegate.h

Issue 1426403006: Reland #1 of: Move WebUI ownership from the RenderFrameHostManager to the RenderFrameHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
12 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
13 #include "content/common/frame_message_enums.h" 14 #include "content/common/frame_message_enums.h"
14 #include "content/public/browser/site_instance.h" 15 #include "content/public/browser/site_instance.h"
15 #include "content/public/common/javascript_message_type.h" 16 #include "content/public/common/javascript_message_type.h"
16 #include "content/public/common/media_stream_request.h" 17 #include "content/public/common/media_stream_request.h"
17 #include "net/http/http_response_headers.h" 18 #include "net/http/http_response_headers.h"
18 19
19 #if defined(OS_WIN) 20 #if defined(OS_WIN)
20 #include "ui/gfx/native_widget_types.h" 21 #include "ui/gfx/native_widget_types.h"
21 #endif 22 #endif
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // 166 //
166 // TODO(alexmos): This method currently supports cross-process postMessage, 167 // TODO(alexmos): This method currently supports cross-process postMessage,
167 // where we may need to create any missing proxies for the message's source 168 // where we may need to create any missing proxies for the message's source
168 // frame and its opener chain. It currently exists in WebContents due to a 169 // frame and its opener chain. It currently exists in WebContents due to a
169 // special case for <webview> guests, but this logic should eventually be 170 // special case for <webview> guests, but this logic should eventually be
170 // moved down into RenderFrameProxyHost::RouteMessageEvent when <webview> 171 // moved down into RenderFrameProxyHost::RouteMessageEvent when <webview>
171 // refactoring for --site-per-process mode is further along. See 172 // refactoring for --site-per-process mode is further along. See
172 // https://crbug.com/330264. 173 // https://crbug.com/330264.
173 virtual void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) {} 174 virtual void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) {}
174 175
176 // Creates a WebUI object for a frame navigating to the given URL. If no WebUI
177 // applies, returns null.
178 virtual scoped_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(const GURL& url);
179
175 #if defined(OS_WIN) 180 #if defined(OS_WIN)
176 // Returns the frame's parent's NativeViewAccessible. 181 // Returns the frame's parent's NativeViewAccessible.
177 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); 182 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible();
178 #endif 183 #endif
179 184
180 protected: 185 protected:
181 virtual ~RenderFrameHostDelegate() {} 186 virtual ~RenderFrameHostDelegate() {}
182 }; 187 };
183 188
184 } // namespace content 189 } // namespace content
185 190
186 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 191 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698