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. It has a | 9 // BrowserPluginGuest lives on the UI thread of the browser process. It has a |
10 // helper, BrowserPluginGuestHelper, which is a RenderViewHostObserver. The | 10 // helper, BrowserPluginGuestHelper, which is a RenderViewHostObserver. The |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 int request_id, | 189 int request_id, |
190 const std::string& request_method, | 190 const std::string& request_method, |
191 const base::Callback<void(bool)>& callback) OVERRIDE; | 191 const base::Callback<void(bool)>& callback) OVERRIDE; |
192 virtual void CloseContents(WebContents* source) OVERRIDE; | 192 virtual void CloseContents(WebContents* source) OVERRIDE; |
193 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; | 193 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; |
194 virtual void HandleKeyboardEvent( | 194 virtual void HandleKeyboardEvent( |
195 WebContents* source, | 195 WebContents* source, |
196 const NativeWebKeyboardEvent& event) OVERRIDE; | 196 const NativeWebKeyboardEvent& event) OVERRIDE; |
197 virtual WebContents* OpenURLFromTab(WebContents* source, | 197 virtual WebContents* OpenURLFromTab(WebContents* source, |
198 const OpenURLParams& params) OVERRIDE; | 198 const OpenURLParams& params) OVERRIDE; |
199 virtual void WebContentsCreated(WebContents* source_contents, | 199 virtual void WebContentsCreated( |
200 int64 source_frame_id, | 200 WebContents* source_contents, |
201 const string16& frame_name, | 201 int64 source_frame_id, |
202 const GURL& target_url, | 202 const string16& frame_name, |
203 WebContents* new_contents) OVERRIDE; | 203 const GURL& target_url, |
| 204 const WebKit::WindowFeatures& web_window_features, |
| 205 WebContents* new_contents) OVERRIDE; |
204 virtual void RendererUnresponsive(WebContents* source) OVERRIDE; | 206 virtual void RendererUnresponsive(WebContents* source) OVERRIDE; |
205 virtual void RendererResponsive(WebContents* source) OVERRIDE; | 207 virtual void RendererResponsive(WebContents* source) OVERRIDE; |
206 virtual void RunFileChooser(WebContents* web_contents, | 208 virtual void RunFileChooser(WebContents* web_contents, |
207 const FileChooserParams& params) OVERRIDE; | 209 const FileChooserParams& params) OVERRIDE; |
208 virtual bool ShouldFocusPageAfterCrash() OVERRIDE; | 210 virtual bool ShouldFocusPageAfterCrash() OVERRIDE; |
209 virtual void RequestMediaAccessPermission( | 211 virtual void RequestMediaAccessPermission( |
210 WebContents* web_contents, | 212 WebContents* web_contents, |
211 const MediaStreamRequest& request, | 213 const MediaStreamRequest& request, |
212 const MediaResponseCallback& callback) OVERRIDE; | 214 const MediaResponseCallback& callback) OVERRIDE; |
213 | 215 |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 // This is used to determine whether or not to create a new RenderView when | 502 // This is used to determine whether or not to create a new RenderView when |
501 // this guest is attached. | 503 // this guest is attached. |
502 bool has_render_view_; | 504 bool has_render_view_; |
503 | 505 |
504 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 506 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
505 }; | 507 }; |
506 | 508 |
507 } // namespace content | 509 } // namespace content |
508 | 510 |
509 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 511 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
OLD | NEW |