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 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 // represents a renderer that's hosted within a BrowserPlugin. Creation can | 143 // represents a renderer that's hosted within a BrowserPlugin. Creation can |
144 // occur an arbitrary length of time before attachment. If the new guest has | 144 // occur an arbitrary length of time before attachment. If the new guest has |
145 // an |opener_web_contents|, then it's a new window created by that opener. | 145 // an |opener_web_contents|, then it's a new window created by that opener. |
146 // If the guest was created via navigation, then |extra_params| will be | 146 // If the guest was created via navigation, then |extra_params| will be |
147 // non-NULL. |extra_params| are parameters passed to the BrowserPlugin object | 147 // non-NULL. |extra_params| are parameters passed to the BrowserPlugin object |
148 // element by the content embedder. These parameters may include the API to | 148 // element by the content embedder. These parameters may include the API to |
149 // enable for the given guest. |guest_delegate| is a return parameter of | 149 // enable for the given guest. |guest_delegate| is a return parameter of |
150 // the delegate in the content embedder that will service the guest in the | 150 // the delegate in the content embedder that will service the guest in the |
151 // content layer. The content layer takes ownership of the |guest_delegate|. | 151 // content layer. The content layer takes ownership of the |guest_delegate|. |
152 virtual void GuestWebContentsCreated( | 152 virtual void GuestWebContentsCreated( |
| 153 SiteInstance* guest_site_instance, |
153 WebContents* guest_web_contents, | 154 WebContents* guest_web_contents, |
154 WebContents* opener_web_contents, | 155 WebContents* opener_web_contents, |
155 BrowserPluginGuestDelegate** guest_delegate, | 156 BrowserPluginGuestDelegate** guest_delegate, |
156 scoped_ptr<base::DictionaryValue> extra_params) {} | 157 scoped_ptr<base::DictionaryValue> extra_params) {} |
157 | 158 |
158 // Notifies that a guest WebContents has been attached to a BrowserPlugin. | 159 // Notifies that a guest WebContents has been attached to a BrowserPlugin. |
159 // A guest is attached to a BrowserPlugin when the guest has acquired an | 160 // A guest is attached to a BrowserPlugin when the guest has acquired an |
160 // embedder WebContents. This happens on initial navigation or when a new | 161 // embedder WebContents. This happens on initial navigation or when a new |
161 // window is attached to a BrowserPlugin. |extra_params| are params sent | 162 // window is attached to a BrowserPlugin. |extra_params| are params sent |
162 // from javascript. | 163 // from javascript. |
163 virtual void GuestWebContentsAttached( | 164 virtual void GuestWebContentsAttached( |
164 WebContents* guest_web_contents, | 165 WebContents* guest_web_contents, |
165 WebContents* embedder_web_contents, | 166 WebContents* embedder_web_contents, |
166 const GURL& embedder_frame_url, | |
167 const base::DictionaryValue& extra_params) {} | 167 const base::DictionaryValue& extra_params) {} |
168 | 168 |
169 // Notifies that a RenderProcessHost has been created. This is called before | 169 // Notifies that a RenderProcessHost has been created. This is called before |
170 // the content layer adds its own BrowserMessageFilters, so that the | 170 // the content layer adds its own BrowserMessageFilters, so that the |
171 // embedder's IPC filters have priority. | 171 // embedder's IPC filters have priority. |
172 virtual void RenderProcessHostCreated(RenderProcessHost* host) {} | 172 virtual void RenderProcessHostCreated(RenderProcessHost* host) {} |
173 | 173 |
174 // Notifies that a BrowserChildProcessHost has been created. | 174 // Notifies that a BrowserChildProcessHost has been created. |
175 virtual void BrowserChildProcessHostCreated(BrowserChildProcessHost* host) {} | 175 virtual void BrowserChildProcessHostCreated(BrowserChildProcessHost* host) {} |
176 | 176 |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 // Returns true if plugin referred to by the url can use | 602 // Returns true if plugin referred to by the url can use |
603 // pp::FileIO::RequestOSFileHandle. | 603 // pp::FileIO::RequestOSFileHandle. |
604 virtual bool IsPluginAllowedToCallRequestOSFileHandle( | 604 virtual bool IsPluginAllowedToCallRequestOSFileHandle( |
605 content::BrowserContext* browser_context, | 605 content::BrowserContext* browser_context, |
606 const GURL& url); | 606 const GURL& url); |
607 }; | 607 }; |
608 | 608 |
609 } // namespace content | 609 } // namespace content |
610 | 610 |
611 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 611 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |