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

Side by Side Diff: content/renderer/render_frame_proxy.h

Issue 1373573002: ABANDONED: OOPIFs: Moving stitching of local paths from renderer to browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@page-serialization-recursive-begone
Patch Set: Removed no longer needed WebKit dependency. Created 5 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_RENDERER_RENDER_FRAME_PROXY_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_PROXY_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_PROXY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 int render_view_routing_id, 88 int render_view_routing_id,
89 int opener_routing_id, 89 int opener_routing_id,
90 int parent_routing_id, 90 int parent_routing_id,
91 const FrameReplicationState& replicated_state); 91 const FrameReplicationState& replicated_state);
92 92
93 // Returns the RenderFrameProxy for the given routing ID. 93 // Returns the RenderFrameProxy for the given routing ID.
94 static RenderFrameProxy* FromRoutingID(int routing_id); 94 static RenderFrameProxy* FromRoutingID(int routing_id);
95 95
96 // Returns the RenderFrameProxy given a WebFrame. 96 // Returns the RenderFrameProxy given a WebFrame.
97 static RenderFrameProxy* FromWebFrame(blink::WebFrame* web_frame); 97 static RenderFrameProxy* FromWebFrame(blink::WebFrame* web_frame);
98 static const RenderFrameProxy* FromWebFrame(const blink::WebFrame* web_frame);
98 99
99 ~RenderFrameProxy() override; 100 ~RenderFrameProxy() override;
100 101
101 // IPC::Sender 102 // IPC::Sender
102 bool Send(IPC::Message* msg) override; 103 bool Send(IPC::Message* msg) override;
103 104
104 // Out-of-process child frames receive a signal from RenderWidgetCompositor 105 // Out-of-process child frames receive a signal from RenderWidgetCompositor
105 // when a compositor frame has committed. 106 // when a compositor frame has committed.
106 void DidCommitCompositorFrame(); 107 void DidCommitCompositorFrame();
107 108
108 // Pass replicated information, such as security origin, to this 109 // Pass replicated information, such as security origin, to this
109 // RenderFrameProxy's WebRemoteFrame. 110 // RenderFrameProxy's WebRemoteFrame.
110 void SetReplicatedState(const FrameReplicationState& state); 111 void SetReplicatedState(const FrameReplicationState& state);
111 112
112 // Navigating a top-level frame cross-process does not swap the WebLocalFrame 113 // Navigating a top-level frame cross-process does not swap the WebLocalFrame
113 // for a WebRemoteFrame in the frame tree. In this case, this WebRemoteFrame 114 // for a WebRemoteFrame in the frame tree. In this case, this WebRemoteFrame
114 // is not attached to the frame tree and there is no blink::Frame associated 115 // is not attached to the frame tree and there is no blink::Frame associated
115 // with it, so it is not in state where most operations on it will succeed. 116 // with it, so it is not in state where most operations on it will succeed.
116 bool IsMainFrameDetachedFromTree() const; 117 bool IsMainFrameDetachedFromTree() const;
117 118
118 int routing_id() { return routing_id_; } 119 int routing_id() const { return routing_id_; }
119 RenderViewImpl* render_view() { return render_view_; } 120 RenderViewImpl* render_view() { return render_view_; }
120 blink::WebRemoteFrame* web_frame() { return web_frame_; } 121 blink::WebRemoteFrame* web_frame() { return web_frame_; }
121 122
122 // blink::WebRemoteFrameClient implementation: 123 // blink::WebRemoteFrameClient implementation:
123 void frameDetached(DetachType type) override; 124 void frameDetached(DetachType type) override;
124 void postMessageEvent(blink::WebLocalFrame* sourceFrame, 125 void postMessageEvent(blink::WebLocalFrame* sourceFrame,
125 blink::WebRemoteFrame* targetFrame, 126 blink::WebRemoteFrame* targetFrame,
126 blink::WebSecurityOrigin target, 127 blink::WebSecurityOrigin target,
127 blink::WebDOMMessageEvent event) override; 128 blink::WebDOMMessageEvent event) override;
128 void initializeChildFrame(const blink::WebRect& frame_rect, 129 void initializeChildFrame(const blink::WebRect& frame_rect,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_; 172 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_;
172 173
173 RenderViewImpl* render_view_; 174 RenderViewImpl* render_view_;
174 175
175 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy); 176 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy);
176 }; 177 };
177 178
178 } // namespace 179 } // namespace
179 180
180 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ 181 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698