| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 // created (even if we are in a process model that doesn't usually swap.) | 271 // created (even if we are in a process model that doesn't usually swap.) |
| 272 // This forces a process swap and severs script connections with existing | 272 // This forces a process swap and severs script connections with existing |
| 273 // tabs. | 273 // tabs. |
| 274 virtual bool ShouldSwapBrowsingInstancesForNavigation( | 274 virtual bool ShouldSwapBrowsingInstancesForNavigation( |
| 275 SiteInstance* site_instance, | 275 SiteInstance* site_instance, |
| 276 const GURL& current_url, | 276 const GURL& current_url, |
| 277 const GURL& new_url); | 277 const GURL& new_url); |
| 278 | 278 |
| 279 // Returns true if the given navigation redirect should cause a renderer | 279 // Returns true if the given navigation redirect should cause a renderer |
| 280 // process swap. | 280 // process swap. |
| 281 // This is called on the IO thread. | 281 virtual bool ShouldSwapProcessesForRedirect(BrowserContext* browser_context, |
| 282 virtual bool ShouldSwapProcessesForRedirect(ResourceContext* resource_context, | |
| 283 const GURL& current_url, | 282 const GURL& current_url, |
| 284 const GURL& new_url); | 283 const GURL& new_url); |
| 285 | 284 |
| 286 // Returns true if the passed in URL should be assigned as the site of the | 285 // Returns true if the passed in URL should be assigned as the site of the |
| 287 // current SiteInstance, if it does not yet have a site. | 286 // current SiteInstance, if it does not yet have a site. |
| 288 virtual bool ShouldAssignSiteForURL(const GURL& url); | 287 virtual bool ShouldAssignSiteForURL(const GURL& url); |
| 289 | 288 |
| 290 // See CharacterEncoding's comment. | 289 // See CharacterEncoding's comment. |
| 291 virtual std::string GetCanonicalEncodingNameByAliasName( | 290 virtual std::string GetCanonicalEncodingNameByAliasName( |
| 292 const std::string& alias_name); | 291 const std::string& alias_name); |
| (...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 791 // Returns whether the Win32k lockdown process mitigation should be applied to | 790 // Returns whether the Win32k lockdown process mitigation should be applied to |
| 792 // a process hosting a plugin with the specified |mime_type|. | 791 // a process hosting a plugin with the specified |mime_type|. |
| 793 virtual bool IsWin32kLockdownEnabledForMimeType( | 792 virtual bool IsWin32kLockdownEnabledForMimeType( |
| 794 const std::string& mime_type) const; | 793 const std::string& mime_type) const; |
| 795 #endif | 794 #endif |
| 796 }; | 795 }; |
| 797 | 796 |
| 798 } // namespace content | 797 } // namespace content |
| 799 | 798 |
| 800 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 799 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |