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

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

Issue 1199313006: Disable support for swapped out RenderFrame(Host) on desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 CrossProcessFrameConnector* cross_process_frame_connector() { 105 CrossProcessFrameConnector* cross_process_frame_connector() {
106 return cross_process_frame_connector_.get(); 106 return cross_process_frame_connector_.get();
107 } 107 }
108 108
109 // Set the frame's opener to null in the renderer process in response to an 109 // Set the frame's opener to null in the renderer process in response to an
110 // action in another renderer process. 110 // action in another renderer process.
111 void DisownOpener(); 111 void DisownOpener();
112 112
113 void set_render_frame_proxy_created(bool created) { 113 void set_render_frame_proxy_created(bool created) {
114 LOG(ERROR) << "RFPH[" << this << "]::set_render_frame_proxy_created: " << cr eated;
114 render_frame_proxy_created_ = created; 115 render_frame_proxy_created_ = created;
115 } 116 }
116 117
117 // Returns if the RenderFrameProxy for this host is alive. 118 // Returns if the RenderFrameProxy for this host is alive.
118 bool is_render_frame_proxy_live() { return render_frame_proxy_created_; } 119 bool is_render_frame_proxy_live() { return render_frame_proxy_created_; }
119 120
120 private: 121 private:
121 // IPC Message handlers. 122 // IPC Message handlers.
122 void OnDetach(); 123 void OnDetach();
123 void OnOpenURL(const FrameHostMsg_OpenURL_Params& params); 124 void OnOpenURL(const FrameHostMsg_OpenURL_Params& params);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // kept alive as long as any RenderFrameHosts or RenderFrameProxyHosts 156 // kept alive as long as any RenderFrameHosts or RenderFrameProxyHosts
156 // are associated with it. 157 // are associated with it.
157 RenderViewHostImpl* render_view_host_; 158 RenderViewHostImpl* render_view_host_;
158 159
159 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); 160 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost);
160 }; 161 };
161 162
162 } // namespace 163 } // namespace
163 164
164 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ 165 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698