OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // A BrowserPluginGuest represents the browser side of browser <--> renderer | 5 // A BrowserPluginGuest represents the browser side of browser <--> renderer |
6 // communication. A BrowserPlugin (a WebPlugin) is on the renderer side of | 6 // communication. A BrowserPlugin (a WebPlugin) is on the renderer side of |
7 // browser <--> guest renderer communication. The 'guest' renderer is a | 7 // browser <--> guest renderer communication. The 'guest' renderer is a |
8 // <browser> tag. | 8 // <browser> tag. |
9 // | 9 // |
10 // BrowserPluginGuest lives on the UI thread of the browser process. It has a | 10 // BrowserPluginGuest lives on the UI thread of the browser process. It has a |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 const GURL& validated_url, | 104 const GURL& validated_url, |
105 int error_code, | 105 int error_code, |
106 const string16& error_description, | 106 const string16& error_description, |
107 RenderViewHost* render_view_host) OVERRIDE; | 107 RenderViewHost* render_view_host) OVERRIDE; |
108 virtual void DidCommitProvisionalLoadForFrame( | 108 virtual void DidCommitProvisionalLoadForFrame( |
109 int64 frame_id, | 109 int64 frame_id, |
110 bool is_main_frame, | 110 bool is_main_frame, |
111 const GURL& url, | 111 const GURL& url, |
112 PageTransition transition_type, | 112 PageTransition transition_type, |
113 RenderViewHost* render_view_host) OVERRIDE; | 113 RenderViewHost* render_view_host) OVERRIDE; |
| 114 virtual void DidStopLoading( |
| 115 RenderViewHost* render_view_host) OVERRIDE; |
| 116 |
114 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; | 117 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; |
115 | 118 |
116 // WebContentsDelegate implementation. | 119 // WebContentsDelegate implementation. |
117 virtual bool CanDownload(RenderViewHost* render_view_host, | 120 virtual bool CanDownload(RenderViewHost* render_view_host, |
118 int request_id, | 121 int request_id, |
119 const std::string& request_method) OVERRIDE; | 122 const std::string& request_method) OVERRIDE; |
120 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; | 123 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; |
121 virtual void RendererUnresponsive(WebContents* source) OVERRIDE; | 124 virtual void RendererUnresponsive(WebContents* source) OVERRIDE; |
122 | 125 |
123 void UpdateRect(RenderViewHost* render_view_host, | 126 void UpdateRect(RenderViewHost* render_view_host, |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 int pending_update_counter_; | 237 int pending_update_counter_; |
235 base::TimeDelta guest_hang_timeout_; | 238 base::TimeDelta guest_hang_timeout_; |
236 bool visible_; | 239 bool visible_; |
237 | 240 |
238 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 241 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
239 }; | 242 }; |
240 | 243 |
241 } // namespace content | 244 } // namespace content |
242 | 245 |
243 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 246 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
OLD | NEW |