| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 const GURL& validated_url, | 102 const GURL& validated_url, |
| 103 int error_code, | 103 int error_code, |
| 104 const string16& error_description, | 104 const string16& error_description, |
| 105 RenderViewHost* render_view_host) OVERRIDE; | 105 RenderViewHost* render_view_host) OVERRIDE; |
| 106 virtual void DidCommitProvisionalLoadForFrame( | 106 virtual void DidCommitProvisionalLoadForFrame( |
| 107 int64 frame_id, | 107 int64 frame_id, |
| 108 bool is_main_frame, | 108 bool is_main_frame, |
| 109 const GURL& url, | 109 const GURL& url, |
| 110 PageTransition transition_type, | 110 PageTransition transition_type, |
| 111 RenderViewHost* render_view_host) OVERRIDE; | 111 RenderViewHost* render_view_host) OVERRIDE; |
| 112 virtual void DidFinishLoad(int64 frame_id, |
| 113 const GURL& validated_url, |
| 114 bool is_main_frame, |
| 115 RenderViewHost* render_view_host) OVERRIDE; |
| 112 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; | 116 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; |
| 113 | 117 |
| 114 // WebContentsDelegate implementation. | 118 // WebContentsDelegate implementation. |
| 115 virtual bool CanDownload(RenderViewHost* render_view_host, | 119 virtual bool CanDownload(RenderViewHost* render_view_host, |
| 116 int request_id, | 120 int request_id, |
| 117 const std::string& request_method) OVERRIDE; | 121 const std::string& request_method) OVERRIDE; |
| 118 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; | 122 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; |
| 119 virtual void RendererUnresponsive(WebContents* source) OVERRIDE; | 123 virtual void RendererUnresponsive(WebContents* source) OVERRIDE; |
| 120 | 124 |
| 121 void UpdateRect(RenderViewHost* render_view_host, | 125 void UpdateRect(RenderViewHost* render_view_host, |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 IDMap<RenderViewHost> pending_updates_; | 218 IDMap<RenderViewHost> pending_updates_; |
| 215 int pending_update_counter_; | 219 int pending_update_counter_; |
| 216 base::TimeDelta guest_hang_timeout_; | 220 base::TimeDelta guest_hang_timeout_; |
| 217 | 221 |
| 218 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 222 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
| 219 }; | 223 }; |
| 220 | 224 |
| 221 } // namespace content | 225 } // namespace content |
| 222 | 226 |
| 223 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 227 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
| OLD | NEW |