Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 2321543002: Merge CrossSiteResourceHandler and NavigationResourceThrottle (Closed)
Patch Set: Addressed nits Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 // created (even if we are in a process model that doesn't usually swap.) 270 // created (even if we are in a process model that doesn't usually swap.)
271 // This forces a process swap and severs script connections with existing 271 // This forces a process swap and severs script connections with existing
272 // tabs. 272 // tabs.
273 virtual bool ShouldSwapBrowsingInstancesForNavigation( 273 virtual bool ShouldSwapBrowsingInstancesForNavigation(
274 SiteInstance* site_instance, 274 SiteInstance* site_instance,
275 const GURL& current_url, 275 const GURL& current_url,
276 const GURL& new_url); 276 const GURL& new_url);
277 277
278 // Returns true if the given navigation redirect should cause a renderer 278 // Returns true if the given navigation redirect should cause a renderer
279 // process swap. 279 // process swap.
280 // This is called on the IO thread. 280 virtual bool ShouldSwapProcessesForRedirect(BrowserContext* browser_context,
281 virtual bool ShouldSwapProcessesForRedirect(ResourceContext* resource_context,
282 const GURL& current_url, 281 const GURL& current_url,
283 const GURL& new_url); 282 const GURL& new_url);
284 283
285 // Returns true if the passed in URL should be assigned as the site of the 284 // Returns true if the passed in URL should be assigned as the site of the
286 // current SiteInstance, if it does not yet have a site. 285 // current SiteInstance, if it does not yet have a site.
287 virtual bool ShouldAssignSiteForURL(const GURL& url); 286 virtual bool ShouldAssignSiteForURL(const GURL& url);
288 287
289 // See CharacterEncoding's comment. 288 // See CharacterEncoding's comment.
290 virtual std::string GetCanonicalEncodingNameByAliasName( 289 virtual std::string GetCanonicalEncodingNameByAliasName(
291 const std::string& alias_name); 290 const std::string& alias_name);
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 // Returns whether the Win32k lockdown process mitigation should be applied to 783 // Returns whether the Win32k lockdown process mitigation should be applied to
785 // a process hosting a plugin with the specified |mime_type|. 784 // a process hosting a plugin with the specified |mime_type|.
786 virtual bool IsWin32kLockdownEnabledForMimeType( 785 virtual bool IsWin32kLockdownEnabledForMimeType(
787 const std::string& mime_type) const; 786 const std::string& mime_type) const;
788 #endif 787 #endif
789 }; 788 };
790 789
791 } // namespace content 790 } // namespace content
792 791
793 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 792 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl_unittest.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698