| OLD | NEW |
| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 bool is_render_frame_proxy_live() { return render_frame_proxy_created_; } | 128 bool is_render_frame_proxy_live() { return render_frame_proxy_created_; } |
| 129 | 129 |
| 130 private: | 130 private: |
| 131 // IPC Message handlers. | 131 // IPC Message handlers. |
| 132 void OnDetach(); | 132 void OnDetach(); |
| 133 void OnOpenURL(const FrameHostMsg_OpenURL_Params& params); | 133 void OnOpenURL(const FrameHostMsg_OpenURL_Params& params); |
| 134 void OnRouteMessageEvent(const FrameMsg_PostMessage_Params& params); | 134 void OnRouteMessageEvent(const FrameMsg_PostMessage_Params& params); |
| 135 void OnDidChangeOpener(int32_t opener_routing_id); | 135 void OnDidChangeOpener(int32_t opener_routing_id); |
| 136 void OnAdvanceFocus(blink::WebFocusType type, int32_t source_routing_id); | 136 void OnAdvanceFocus(blink::WebFocusType type, int32_t source_routing_id); |
| 137 void OnFrameFocused(); | 137 void OnFrameFocused(); |
| 138 void OnTriedDisplayingInsecureContent(const GURL& origin, const GURL& url); |
| 139 void OnTriedRunningInsecureContent(const GURL& origin, const GURL& url); |
| 138 | 140 |
| 139 // This RenderFrameProxyHost's routing id. | 141 // This RenderFrameProxyHost's routing id. |
| 140 int routing_id_; | 142 int routing_id_; |
| 141 | 143 |
| 142 // The SiteInstance this proxy is associated with. | 144 // The SiteInstance this proxy is associated with. |
| 143 scoped_refptr<SiteInstance> site_instance_; | 145 scoped_refptr<SiteInstance> site_instance_; |
| 144 | 146 |
| 145 // The renderer process this RenderFrameHostProxy is associated with. It is | 147 // The renderer process this RenderFrameHostProxy is associated with. It is |
| 146 // equivalent to the result of site_instance_->GetProcess(), but that | 148 // equivalent to the result of site_instance_->GetProcess(), but that |
| 147 // method has the side effect of creating the process if it doesn't exist. | 149 // method has the side effect of creating the process if it doesn't exist. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 168 // kept alive as long as any RenderFrameHosts or RenderFrameProxyHosts | 170 // kept alive as long as any RenderFrameHosts or RenderFrameProxyHosts |
| 169 // are associated with it. | 171 // are associated with it. |
| 170 RenderViewHostImpl* render_view_host_; | 172 RenderViewHostImpl* render_view_host_; |
| 171 | 173 |
| 172 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); | 174 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); |
| 173 }; | 175 }; |
| 174 | 176 |
| 175 } // namespace | 177 } // namespace |
| 176 | 178 |
| 177 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ | 179 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ |
| OLD | NEW |