| 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 } | 320 } |
| 321 | 321 |
| 322 void SetZoom(double zoom_factor); | 322 void SetZoom(double zoom_factor); |
| 323 | 323 |
| 324 private: | 324 private: |
| 325 class EmbedderWebContentsObserver; | 325 class EmbedderWebContentsObserver; |
| 326 friend class TestBrowserPluginGuest; | 326 friend class TestBrowserPluginGuest; |
| 327 | 327 |
| 328 class DownloadRequest; | 328 class DownloadRequest; |
| 329 class JavaScriptDialogRequest; | 329 class JavaScriptDialogRequest; |
| 330 // MediaRequest because of naming conflicts with MediaStreamRequest. | |
| 331 class MediaRequest; | |
| 332 class NewWindowRequest; | 330 class NewWindowRequest; |
| 333 class PermissionRequest; | 331 class PermissionRequest; |
| 334 class PointerLockRequest; | 332 class PointerLockRequest; |
| 335 | 333 |
| 336 // Tracks the name, and target URL of the new window and whether or not it has | 334 // Tracks the name, and target URL of the new window and whether or not it has |
| 337 // changed since the WebContents has been created and before the new window | 335 // changed since the WebContents has been created and before the new window |
| 338 // has been attached to a BrowserPlugin. Once the first navigation commits, we | 336 // has been attached to a BrowserPlugin. Once the first navigation commits, we |
| 339 // no longer track this information. | 337 // no longer track this information. |
| 340 struct NewWindowInfo { | 338 struct NewWindowInfo { |
| 341 bool changed; | 339 bool changed; |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 // Weak pointer used to ask GeolocationPermissionContext about geolocation | 601 // Weak pointer used to ask GeolocationPermissionContext about geolocation |
| 604 // permission. | 602 // permission. |
| 605 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; | 603 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; |
| 606 | 604 |
| 607 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 605 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
| 608 }; | 606 }; |
| 609 | 607 |
| 610 } // namespace content | 608 } // namespace content |
| 611 | 609 |
| 612 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 610 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
| OLD | NEW |