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 <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 // unless there is a good reason otherwise. | 186 // unless there is a good reason otherwise. |
187 virtual bool ShouldTryToUseExistingProcessHost( | 187 virtual bool ShouldTryToUseExistingProcessHost( |
188 BrowserContext* browser_context, const GURL& url); | 188 BrowserContext* browser_context, const GURL& url); |
189 | 189 |
190 // Called when a site instance is first associated with a process. | 190 // Called when a site instance is first associated with a process. |
191 virtual void SiteInstanceGotProcess(SiteInstance* site_instance) {} | 191 virtual void SiteInstanceGotProcess(SiteInstance* site_instance) {} |
192 | 192 |
193 // Called from a site instance's destructor. | 193 // Called from a site instance's destructor. |
194 virtual void SiteInstanceDeleting(SiteInstance* site_instance) {} | 194 virtual void SiteInstanceDeleting(SiteInstance* site_instance) {} |
195 | 195 |
196 // Returns true if for the navigation from |current_url| to |new_url|, | 196 // Returns true if for the navigation from |current_url| to |new_url| |
197 // processes should be swapped (even if we are in a process model that | 197 // in |site_instance|, the process should be swapped (even if we are in a |
198 // doesn't usually swap). | 198 // process model that doesn't usually swap). |
199 virtual bool ShouldSwapProcessesForNavigation(const GURL& current_url, | 199 virtual bool ShouldSwapProcessesForNavigation(SiteInstance* site_instance, |
| 200 const GURL& current_url, |
200 const GURL& new_url); | 201 const GURL& new_url); |
201 | 202 |
202 // Returns true if the given navigation redirect should cause a renderer | 203 // Returns true if the given navigation redirect should cause a renderer |
203 // process swap. | 204 // process swap. |
204 // This is called on the IO thread. | 205 // This is called on the IO thread. |
205 virtual bool ShouldSwapProcessesForRedirect(ResourceContext* resource_context, | 206 virtual bool ShouldSwapProcessesForRedirect(ResourceContext* resource_context, |
206 const GURL& current_url, | 207 const GURL& current_url, |
207 const GURL& new_url); | 208 const GURL& new_url); |
208 | 209 |
209 // See CharacterEncoding's comment. | 210 // See CharacterEncoding's comment. |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 // This is called on a worker thread. | 509 // This is called on a worker thread. |
509 virtual | 510 virtual |
510 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 511 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
511 const GURL& url); | 512 const GURL& url); |
512 #endif | 513 #endif |
513 }; | 514 }; |
514 | 515 |
515 } // namespace content | 516 } // namespace content |
516 | 517 |
517 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 518 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |