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

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

Issue 1098763003: Send origin updates to frame proxies when a frame navigates to new origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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"
11 #include "ipc/ipc_listener.h" 11 #include "ipc/ipc_listener.h"
12 #include "ipc/ipc_sender.h" 12 #include "ipc/ipc_sender.h"
13 #include "third_party/WebKit/public/web/WebRemoteFrame.h" 13 #include "third_party/WebKit/public/web/WebRemoteFrame.h"
14 #include "third_party/WebKit/public/web/WebRemoteFrameClient.h" 14 #include "third_party/WebKit/public/web/WebRemoteFrameClient.h"
15 #include "url/origin.h"
15 16
16 struct FrameMsg_BuffersSwapped_Params; 17 struct FrameMsg_BuffersSwapped_Params;
17 struct FrameMsg_CompositorFrameSwapped_Params; 18 struct FrameMsg_CompositorFrameSwapped_Params;
18 19
19 namespace blink { 20 namespace blink {
20 class WebInputEvent; 21 class WebInputEvent;
21 } 22 }
22 23
23 namespace content { 24 namespace content {
24 25
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 138
138 // IPC handlers 139 // IPC handlers
139 void OnDeleteProxy(); 140 void OnDeleteProxy();
140 void OnChildFrameProcessGone(); 141 void OnChildFrameProcessGone();
141 void OnCompositorFrameSwapped(const IPC::Message& message); 142 void OnCompositorFrameSwapped(const IPC::Message& message);
142 void OnDisownOpener(); 143 void OnDisownOpener();
143 void OnDidStopLoading(); 144 void OnDidStopLoading();
144 void OnDidUpdateSandboxFlags(SandboxFlags flags); 145 void OnDidUpdateSandboxFlags(SandboxFlags flags);
145 void OnDispatchLoad(); 146 void OnDispatchLoad();
146 void OnDidUpdateName(const std::string& name); 147 void OnDidUpdateName(const std::string& name);
148 void OnDidUpdateOrigin(const url::Origin& origin);
147 149
148 // The routing ID by which this RenderFrameProxy is known. 150 // The routing ID by which this RenderFrameProxy is known.
149 const int routing_id_; 151 const int routing_id_;
150 152
151 // The routing ID of the local RenderFrame (if any) which this 153 // The routing ID of the local RenderFrame (if any) which this
152 // RenderFrameProxy is meant to replace in the frame tree. 154 // RenderFrameProxy is meant to replace in the frame tree.
153 const int frame_routing_id_; 155 const int frame_routing_id_;
154 156
155 // Stores the WebRemoteFrame we are associated with. 157 // Stores the WebRemoteFrame we are associated with.
156 blink::WebRemoteFrame* web_frame_; 158 blink::WebRemoteFrame* web_frame_;
157 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_; 159 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_;
158 160
159 RenderViewImpl* render_view_; 161 RenderViewImpl* render_view_;
160 162
161 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy); 163 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy);
162 }; 164 };
163 165
164 } // namespace 166 } // namespace
165 167
166 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ 168 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698