| 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 is the browser side of a browser <--> embedder | 5 // A BrowserPluginGuest is the browser side of a browser <--> embedder |
| 6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder | 6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder |
| 7 // renderer side of browser <--> embedder renderer communication. | 7 // renderer side of browser <--> embedder renderer communication. |
| 8 // | 8 // |
| 9 // BrowserPluginGuest lives on the UI thread of the browser process. Any | 9 // BrowserPluginGuest lives on the UI thread of the browser process. Any |
| 10 // messages about the guest render process that the embedder might be interested | 10 // messages about the guest render process that the embedder might be interested |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 // |web_contents| has to stay valid for the lifetime of BrowserPluginGuest. | 345 // |web_contents| has to stay valid for the lifetime of BrowserPluginGuest. |
| 346 BrowserPluginGuest(int instance_id, | 346 BrowserPluginGuest(int instance_id, |
| 347 bool has_render_view, | 347 bool has_render_view, |
| 348 WebContentsImpl* web_contents, | 348 WebContentsImpl* web_contents, |
| 349 BrowserPluginGuest* opener); | 349 BrowserPluginGuest* opener); |
| 350 | 350 |
| 351 // Destroy unattached new windows that have been opened by this | 351 // Destroy unattached new windows that have been opened by this |
| 352 // BrowserPluginGuest. | 352 // BrowserPluginGuest. |
| 353 void DestroyUnattachedWindows(); | 353 void DestroyUnattachedWindows(); |
| 354 | 354 |
| 355 void ReportLoadAbort(const GURL& url, bool is_top_level, int reason); |
| 356 |
| 355 void LoadURLWithParams(const GURL& url, | 357 void LoadURLWithParams(const GURL& url, |
| 356 const Referrer& referrer, | 358 const Referrer& referrer, |
| 357 PageTransition transition_type, | 359 PageTransition transition_type, |
| 358 WebContents* web_contents); | 360 WebContents* web_contents); |
| 359 | 361 |
| 360 // Bridge IDs correspond to a geolocation request. This method will remove | 362 // Bridge IDs correspond to a geolocation request. This method will remove |
| 361 // the bookkeeping for a particular geolocation request associated with the | 363 // the bookkeeping for a particular geolocation request associated with the |
| 362 // provided |bridge_id|. It returns the request ID of the geolocation request. | 364 // provided |bridge_id|. It returns the request ID of the geolocation request. |
| 363 int RemoveBridgeID(int bridge_id); | 365 int RemoveBridgeID(int bridge_id); |
| 364 | 366 |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 // Weak pointer used to ask GeolocationPermissionContext about geolocation | 605 // Weak pointer used to ask GeolocationPermissionContext about geolocation |
| 604 // permission. | 606 // permission. |
| 605 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; | 607 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; |
| 606 | 608 |
| 607 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 609 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
| 608 }; | 610 }; |
| 609 | 611 |
| 610 } // namespace content | 612 } // namespace content |
| 611 | 613 |
| 612 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 614 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
| OLD | NEW |