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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 bool visible() const { return visible_; } | 87 bool visible() const { return visible_; } |
88 | 88 |
89 // NotificationObserver implementation. | 89 // NotificationObserver implementation. |
90 virtual void Observe(int type, | 90 virtual void Observe(int type, |
91 const NotificationSource& source, | 91 const NotificationSource& source, |
92 const NotificationDetails& details) OVERRIDE; | 92 const NotificationDetails& details) OVERRIDE; |
93 | 93 |
94 // WebContentsObserver implementation. | 94 // WebContentsObserver implementation. |
95 virtual void DidStartProvisionalLoadForFrame( | 95 virtual void DidStartProvisionalLoadForFrame( |
96 int64 frame_id, | 96 int64 frame_id, |
| 97 int64 parent_frame_id, |
97 bool is_main_frame, | 98 bool is_main_frame, |
98 const GURL& validated_url, | 99 const GURL& validated_url, |
99 bool is_error_page, | 100 bool is_error_page, |
100 RenderViewHost* render_view_host) OVERRIDE; | 101 RenderViewHost* render_view_host) OVERRIDE; |
101 virtual void DidFailProvisionalLoad( | 102 virtual void DidFailProvisionalLoad( |
102 int64 frame_id, | 103 int64 frame_id, |
103 bool is_main_frame, | 104 bool is_main_frame, |
104 const GURL& validated_url, | 105 const GURL& validated_url, |
105 int error_code, | 106 int error_code, |
106 const string16& error_description, | 107 const string16& error_description, |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 int pending_update_counter_; | 235 int pending_update_counter_; |
235 base::TimeDelta guest_hang_timeout_; | 236 base::TimeDelta guest_hang_timeout_; |
236 bool visible_; | 237 bool visible_; |
237 | 238 |
238 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 239 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
239 }; | 240 }; |
240 | 241 |
241 } // namespace content | 242 } // namespace content |
242 | 243 |
243 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 244 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
OLD | NEW |