| 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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 int screen_x, int screen_y); | 288 int screen_x, int screen_y); |
| 289 | 289 |
| 290 // Called when the drag started by this guest ends at an OS-level. | 290 // Called when the drag started by this guest ends at an OS-level. |
| 291 void EndSystemDrag(); | 291 void EndSystemDrag(); |
| 292 | 292 |
| 293 // |this| takes ownership of |delegate|. | 293 // |this| takes ownership of |delegate|. |
| 294 void SetDelegate(BrowserPluginGuestDelegate* delegate); | 294 void SetDelegate(BrowserPluginGuestDelegate* delegate); |
| 295 | 295 |
| 296 void RespondToPermissionRequest(int request_id, | 296 void RespondToPermissionRequest(int request_id, |
| 297 bool should_allow, | 297 bool should_allow, |
| 298 const std::string& user_input); | 298 const std::string& user_input, |
| 299 bool user_initiated); |
| 299 | 300 |
| 300 private: | 301 private: |
| 301 class EmbedderWebContentsObserver; | 302 class EmbedderWebContentsObserver; |
| 302 friend class TestBrowserPluginGuest; | 303 friend class TestBrowserPluginGuest; |
| 303 | 304 |
| 304 class DownloadRequest; | 305 class DownloadRequest; |
| 305 class GeolocationRequest; | 306 class GeolocationRequest; |
| 306 class JavaScriptDialogRequest; | 307 class JavaScriptDialogRequest; |
| 307 // MediaRequest because of naming conflicts with MediaStreamRequest. | 308 // MediaRequest because of naming conflicts with MediaStreamRequest. |
| 308 class MediaRequest; | 309 class MediaRequest; |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 // These are parameters passed from JavaScript on attachment to the content | 551 // These are parameters passed from JavaScript on attachment to the content |
| 551 // embedder. | 552 // embedder. |
| 552 scoped_ptr<base::DictionaryValue> extra_attach_params_; | 553 scoped_ptr<base::DictionaryValue> extra_attach_params_; |
| 553 | 554 |
| 554 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 555 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
| 555 }; | 556 }; |
| 556 | 557 |
| 557 } // namespace content | 558 } // namespace content |
| 558 | 559 |
| 559 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 560 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
| OLD | NEW |