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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 // Notifies that a guest WebContents has been attached to a BrowserPlugin. | 157 // Notifies that a guest WebContents has been attached to a BrowserPlugin. |
158 // A guest is attached to a BrowserPlugin when the guest has acquired an | 158 // A guest is attached to a BrowserPlugin when the guest has acquired an |
159 // embedder WebContents. This happens on initial navigation or when a new | 159 // embedder WebContents. This happens on initial navigation or when a new |
160 // window is attached to a BrowserPlugin. |extra_params| are params sent | 160 // window is attached to a BrowserPlugin. |extra_params| are params sent |
161 // from javascript. | 161 // from javascript. |
162 virtual void GuestWebContentsAttached( | 162 virtual void GuestWebContentsAttached( |
163 WebContents* guest_web_contents, | 163 WebContents* guest_web_contents, |
164 WebContents* embedder_web_contents, | 164 WebContents* embedder_web_contents, |
165 const base::DictionaryValue& extra_params) {} | 165 const base::DictionaryValue& extra_params) {} |
166 | 166 |
167 // Notifies that a RenderProcessHost has been created. This is called before | 167 // Notifies that a render process will be created. This is called before |
168 // the content layer adds its own BrowserMessageFilters, so that the | 168 // the content layer adds its own BrowserMessageFilters, so that the |
169 // embedder's IPC filters have priority. | 169 // embedder's IPC filters have priority. |
170 virtual void RenderProcessHostCreated(RenderProcessHost* host) {} | 170 virtual void RenderProcessWillLaunch(RenderProcessHost* host) {} |
171 | 171 |
172 // Notifies that a BrowserChildProcessHost has been created. | 172 // Notifies that a BrowserChildProcessHost has been created. |
173 virtual void BrowserChildProcessHostCreated(BrowserChildProcessHost* host) {} | 173 virtual void BrowserChildProcessHostCreated(BrowserChildProcessHost* host) {} |
174 | 174 |
175 // Get the effective URL for the given actual URL, to allow an embedder to | 175 // Get the effective URL for the given actual URL, to allow an embedder to |
176 // group different url schemes in the same SiteInstance. | 176 // group different url schemes in the same SiteInstance. |
177 virtual GURL GetEffectiveURL(BrowserContext* browser_context, | 177 virtual GURL GetEffectiveURL(BrowserContext* browser_context, |
178 const GURL& url); | 178 const GURL& url); |
179 | 179 |
180 // Returns whether all instances of the specified effective URL should be | 180 // Returns whether all instances of the specified effective URL should be |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 content::BrowserContext* browser_context, | 608 content::BrowserContext* browser_context, |
609 const GURL& url); | 609 const GURL& url); |
610 | 610 |
611 // Returns true if dev channel APIs are available for plugins. | 611 // Returns true if dev channel APIs are available for plugins. |
612 virtual bool IsPluginAllowedToUseDevChannelAPIs(); | 612 virtual bool IsPluginAllowedToUseDevChannelAPIs(); |
613 }; | 613 }; |
614 | 614 |
615 } // namespace content | 615 } // namespace content |
616 | 616 |
617 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 617 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |