| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 bool visible() const { return visible_; } | 93 bool visible() const { return visible_; } |
| 94 | 94 |
| 95 // NotificationObserver implementation. | 95 // NotificationObserver implementation. |
| 96 virtual void Observe(int type, | 96 virtual void Observe(int type, |
| 97 const NotificationSource& source, | 97 const NotificationSource& source, |
| 98 const NotificationDetails& details) OVERRIDE; | 98 const NotificationDetails& details) OVERRIDE; |
| 99 | 99 |
| 100 // WebContentsObserver implementation. | 100 // WebContentsObserver implementation. |
| 101 virtual void DidStartProvisionalLoadForFrame( | 101 virtual void DidStartProvisionalLoadForFrame( |
| 102 int64 frame_id, | 102 int64 frame_id, |
| 103 int64 parent_frame_id, |
| 103 bool is_main_frame, | 104 bool is_main_frame, |
| 104 const GURL& validated_url, | 105 const GURL& validated_url, |
| 105 bool is_error_page, | 106 bool is_error_page, |
| 106 RenderViewHost* render_view_host) OVERRIDE; | 107 RenderViewHost* render_view_host) OVERRIDE; |
| 107 virtual void DidFailProvisionalLoad( | 108 virtual void DidFailProvisionalLoad( |
| 108 int64 frame_id, | 109 int64 frame_id, |
| 109 bool is_main_frame, | 110 bool is_main_frame, |
| 110 const GURL& validated_url, | 111 const GURL& validated_url, |
| 111 int error_code, | 112 int error_code, |
| 112 const string16& error_description, | 113 const string16& error_description, |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 int pending_update_counter_; | 258 int pending_update_counter_; |
| 258 base::TimeDelta guest_hang_timeout_; | 259 base::TimeDelta guest_hang_timeout_; |
| 259 bool visible_; | 260 bool visible_; |
| 260 | 261 |
| 261 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 262 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
| 262 }; | 263 }; |
| 263 | 264 |
| 264 } // namespace content | 265 } // namespace content |
| 265 | 266 |
| 266 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 267 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
| OLD | NEW |