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 static bool SupportsScheme(const GURL& url); | |
lazyboy
2014/02/05 19:08:41
feel free to ignore: Might consider moving this to
Fady Samuel
2014/02/05 19:25:31
Done.
| |
356 | |
357 void ReportLoadAbort(const GURL& url, bool is_top_level, int reason); | |
358 | |
355 void LoadURLWithParams(const GURL& url, | 359 void LoadURLWithParams(const GURL& url, |
356 const Referrer& referrer, | 360 const Referrer& referrer, |
357 PageTransition transition_type, | 361 PageTransition transition_type, |
358 WebContents* web_contents); | 362 WebContents* web_contents); |
359 | 363 |
360 // Bridge IDs correspond to a geolocation request. This method will remove | 364 // Bridge IDs correspond to a geolocation request. This method will remove |
361 // the bookkeeping for a particular geolocation request associated with the | 365 // the bookkeeping for a particular geolocation request associated with the |
362 // provided |bridge_id|. It returns the request ID of the geolocation request. | 366 // provided |bridge_id|. It returns the request ID of the geolocation request. |
363 int RemoveBridgeID(int bridge_id); | 367 int RemoveBridgeID(int bridge_id); |
364 | 368 |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
603 // Weak pointer used to ask GeolocationPermissionContext about geolocation | 607 // Weak pointer used to ask GeolocationPermissionContext about geolocation |
604 // permission. | 608 // permission. |
605 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; | 609 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; |
606 | 610 |
607 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 611 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
608 }; | 612 }; |
609 | 613 |
610 } // namespace content | 614 } // namespace content |
611 | 615 |
612 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 616 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
OLD | NEW |