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

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

Issue 574403002: If a RemoteFrame asks to navigate, send an OpenURL IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable new test on android/chrome, like others in the same file Created 6 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_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/browser/frame_host/render_frame_host_impl.h" 9 #include "content/browser/frame_host/render_frame_host_impl.h"
10 #include "content/browser/site_instance_impl.h" 10 #include "content/browser/site_instance_impl.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 CrossProcessFrameConnector* cross_process_frame_connector() { 101 CrossProcessFrameConnector* cross_process_frame_connector() {
102 return cross_process_frame_connector_.get(); 102 return cross_process_frame_connector_.get();
103 } 103 }
104 104
105 // Set the frame's opener to null in the renderer process in response to an 105 // Set the frame's opener to null in the renderer process in response to an
106 // action in another renderer process. 106 // action in another renderer process.
107 void DisownOpener(); 107 void DisownOpener();
108 108
109 private: 109 private:
110 // IPC Message handlers.
111 void OnOpenURL(const FrameHostMsg_OpenURL_Params& params);
112
110 // This RenderFrameProxyHost's routing id. 113 // This RenderFrameProxyHost's routing id.
111 int routing_id_; 114 int routing_id_;
112 115
113 // The SiteInstance this proxy is associated with. 116 // The SiteInstance this proxy is associated with.
114 scoped_refptr<SiteInstance> site_instance_; 117 scoped_refptr<SiteInstance> site_instance_;
115 118
116 // The node in the frame tree where this proxy is located. 119 // The node in the frame tree where this proxy is located.
117 FrameTreeNode* frame_tree_node_; 120 FrameTreeNode* frame_tree_node_;
118 121
119 // When a RenderFrameHost is in a different process from its parent in the 122 // When a RenderFrameHost is in a different process from its parent in the
120 // frame tree, this class connects its associated RenderWidgetHostView 123 // frame tree, this class connects its associated RenderWidgetHostView
121 // to this RenderFrameProxyHost, which corresponds to the same frame in the 124 // to this RenderFrameProxyHost, which corresponds to the same frame in the
122 // parent's renderer process. 125 // parent's renderer process.
123 scoped_ptr<CrossProcessFrameConnector> cross_process_frame_connector_; 126 scoped_ptr<CrossProcessFrameConnector> cross_process_frame_connector_;
124 127
125 // TODO(nasko): This can be removed once we don't have a swapped out state on 128 // TODO(nasko): This can be removed once we don't have a swapped out state on
126 // RenderFrameHosts. See https://crbug.com/357747. 129 // RenderFrameHosts. See https://crbug.com/357747.
127 scoped_ptr<RenderFrameHostImpl> render_frame_host_; 130 scoped_ptr<RenderFrameHostImpl> render_frame_host_;
128 131
129 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); 132 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost);
130 }; 133 };
131 134
132 } // namespace 135 } // namespace
133 136
134 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ 137 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/frame_host/render_frame_proxy_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698