| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 void set_guest_hang_timeout_for_testing(const base::TimeDelta& timeout) { | 75 void set_guest_hang_timeout_for_testing(const base::TimeDelta& timeout) { |
| 76 guest_hang_timeout_ = timeout; | 76 guest_hang_timeout_ = timeout; |
| 77 } | 77 } |
| 78 | 78 |
| 79 void set_embedder_render_process_host( | 79 void set_embedder_render_process_host( |
| 80 RenderProcessHost* render_process_host) { | 80 RenderProcessHost* render_process_host) { |
| 81 embedder_render_process_host_ = render_process_host; | 81 embedder_render_process_host_ = render_process_host; |
| 82 } | 82 } |
| 83 | 83 |
| 84 // WebContentsObserver implementation. | 84 // WebContentsObserver implementation. |
| 85 virtual void DidStartProvisionalLoadForFrame( |
| 86 int64 frame_id, |
| 87 bool is_main_frame, |
| 88 const GURL& validated_url, |
| 89 bool is_error_page, |
| 90 RenderViewHost* render_view_host); |
| 91 |
| 85 virtual void DidCommitProvisionalLoadForFrame( | 92 virtual void DidCommitProvisionalLoadForFrame( |
| 86 int64 frame_id, | 93 int64 frame_id, |
| 87 bool is_main_frame, | 94 bool is_main_frame, |
| 88 const GURL& url, | 95 const GURL& url, |
| 89 PageTransition transition_type, | 96 PageTransition transition_type, |
| 90 RenderViewHost* render_view_host) OVERRIDE; | 97 RenderViewHost* render_view_host) OVERRIDE; |
| 91 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; | 98 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; |
| 92 | 99 |
| 93 // WebContentsDelegate implementation. | 100 // WebContentsDelegate implementation. |
| 94 virtual void RendererUnresponsive(WebContents* source) OVERRIDE; | 101 virtual void RendererUnresponsive(WebContents* source) OVERRIDE; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 IDMap<RenderViewHost> pending_updates_; | 187 IDMap<RenderViewHost> pending_updates_; |
| 181 int pending_update_counter_; | 188 int pending_update_counter_; |
| 182 base::TimeDelta guest_hang_timeout_; | 189 base::TimeDelta guest_hang_timeout_; |
| 183 | 190 |
| 184 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 191 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
| 185 }; | 192 }; |
| 186 | 193 |
| 187 } // namespace content | 194 } // namespace content |
| 188 | 195 |
| 189 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 196 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
| OLD | NEW |