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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 2506183002: Make window.open() IPCs be frame-based (Closed)
Patch Set: Rebase. Created 3 years, 11 months 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 (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_VIEW_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 14 matching lines...) Expand all
25 #include "content/browser/site_instance_impl.h" 25 #include "content/browser/site_instance_impl.h"
26 #include "content/public/browser/notification_observer.h" 26 #include "content/public/browser/notification_observer.h"
27 #include "content/public/browser/render_process_host_observer.h" 27 #include "content/public/browser/render_process_host_observer.h"
28 #include "content/public/browser/render_view_host.h" 28 #include "content/public/browser/render_view_host.h"
29 #include "content/public/common/window_container_type.h" 29 #include "content/public/common/window_container_type.h"
30 #include "net/base/load_states.h" 30 #include "net/base/load_states.h"
31 #include "third_party/WebKit/public/web/WebAXEnums.h" 31 #include "third_party/WebKit/public/web/WebAXEnums.h"
32 #include "third_party/WebKit/public/web/WebConsoleMessage.h" 32 #include "third_party/WebKit/public/web/WebConsoleMessage.h"
33 #include "third_party/WebKit/public/web/WebPopupType.h" 33 #include "third_party/WebKit/public/web/WebPopupType.h"
34 #include "third_party/skia/include/core/SkColor.h" 34 #include "third_party/skia/include/core/SkColor.h"
35 #include "ui/base/window_open_disposition.h"
36 35
37 namespace content { 36 namespace content {
38 37
39 class PageState; 38 class PageState;
40 class SessionStorageNamespace;
41 struct FrameReplicationState; 39 struct FrameReplicationState;
42 40
43 namespace mojom {
44 class CreateNewWindowParams;
45 }
46
47 // This implements the RenderViewHost interface that is exposed to 41 // This implements the RenderViewHost interface that is exposed to
48 // embedders of content, and adds things only visible to content. 42 // embedders of content, and adds things only visible to content.
49 // 43 //
50 // The exact API of this object needs to be more thoroughly designed. Right 44 // The exact API of this object needs to be more thoroughly designed. Right
51 // now it mimics what WebContentsImpl exposed, which is a fairly large API and 45 // now it mimics what WebContentsImpl exposed, which is a fairly large API and
52 // may contain things that are not relevant to a common subset of views. See 46 // may contain things that are not relevant to a common subset of views. See
53 // also the comment in render_view_host_delegate.h about the size and scope of 47 // also the comment in render_view_host_delegate.h about the size and scope of
54 // the delegate API. 48 // the delegate API.
55 // 49 //
56 // Right now, the concept of page navigation (both top level and frame) exists 50 // Right now, the concept of page navigation (both top level and frame) exists
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 void ClosePageIgnoringUnloadEvents(); 172 void ClosePageIgnoringUnloadEvents();
179 173
180 // Tells the renderer view to focus the first (last if reverse is true) node. 174 // Tells the renderer view to focus the first (last if reverse is true) node.
181 void SetInitialFocus(bool reverse); 175 void SetInitialFocus(bool reverse);
182 176
183 bool SuddenTerminationAllowed() const; 177 bool SuddenTerminationAllowed() const;
184 void set_sudden_termination_allowed(bool enabled) { 178 void set_sudden_termination_allowed(bool enabled) {
185 sudden_termination_allowed_ = enabled; 179 sudden_termination_allowed_ = enabled;
186 } 180 }
187 181
188 // Creates a new RenderView with the given route id.
189 void CreateNewWindow(int32_t route_id,
190 int32_t main_frame_route_id,
191 int32_t main_frame_widget_route_id,
192 const mojom::CreateNewWindowParams& params,
193 SessionStorageNamespace* session_storage_namespace);
194
195 // Creates a new RenderWidget with the given route id. |popup_type| indicates 182 // Creates a new RenderWidget with the given route id. |popup_type| indicates
196 // if this widget is a popup and what kind of popup it is (select, autofill). 183 // if this widget is a popup and what kind of popup it is (select, autofill).
197 void CreateNewWidget(int32_t route_id, blink::WebPopupType popup_type); 184 void CreateNewWidget(int32_t route_id, blink::WebPopupType popup_type);
198 185
199 // Creates a full screen RenderWidget. 186 // Creates a full screen RenderWidget.
200 void CreateNewFullscreenWidget(int32_t route_id); 187 void CreateNewFullscreenWidget(int32_t route_id);
201 188
202 // Send RenderViewReady to observers once the process is launched, but not 189 // Send RenderViewReady to observers once the process is launched, but not
203 // re-entrantly. 190 // re-entrantly.
204 void PostRenderViewReady(); 191 void PostRenderViewReady();
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 bool render_view_ready_on_process_launch_; 327 bool render_view_ready_on_process_launch_;
341 328
342 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; 329 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_;
343 330
344 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 331 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
345 }; 332 };
346 333
347 } // namespace content 334 } // namespace content
348 335
349 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 336 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_delegate.h ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698