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

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

Issue 2397893002: Revert the merge of CrossSiteResourceHandler and NavigationResourceThrottle. (Closed)
Patch Set: Add back initialization of started_from_context_menu_. 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 virtual bool ShouldSwapProcessesForRedirect(BrowserContext* browser_context, 281 // This is called on the IO thread.
282 virtual bool ShouldSwapProcessesForRedirect(ResourceContext* resource_context,
282 const GURL& current_url, 283 const GURL& current_url,
283 const GURL& new_url); 284 const GURL& new_url);
284 285
285 // Returns true if the passed in URL should be assigned as the site of the 286 // 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. 287 // current SiteInstance, if it does not yet have a site.
287 virtual bool ShouldAssignSiteForURL(const GURL& url); 288 virtual bool ShouldAssignSiteForURL(const GURL& url);
288 289
289 // See CharacterEncoding's comment. 290 // See CharacterEncoding's comment.
290 virtual std::string GetCanonicalEncodingNameByAliasName( 291 virtual std::string GetCanonicalEncodingNameByAliasName(
291 const std::string& alias_name); 292 const std::string& alias_name);
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 // Returns whether the Win32k lockdown process mitigation should be applied to 791 // Returns whether the Win32k lockdown process mitigation should be applied to
791 // a process hosting a plugin with the specified |mime_type|. 792 // a process hosting a plugin with the specified |mime_type|.
792 virtual bool IsWin32kLockdownEnabledForMimeType( 793 virtual bool IsWin32kLockdownEnabledForMimeType(
793 const std::string& mime_type) const; 794 const std::string& mime_type) const;
794 #endif 795 #endif
795 }; 796 };
796 797
797 } // namespace content 798 } // namespace content
798 799
799 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 800 #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