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

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

Issue 2321543002: Merge CrossSiteResourceHandler and NavigationResourceThrottle (Closed)
Patch Set: Fixed test compilation error Created 4 years, 3 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 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 794 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
796 // implementation. Return nullptr to disable external surface video. 795 // implementation. Return nullptr to disable external surface video.
797 virtual ExternalVideoSurfaceContainer* 796 virtual ExternalVideoSurfaceContainer*
798 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 797 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
799 #endif 798 #endif
800 }; 799 };
801 800
802 } // namespace content 801 } // namespace content
803 802
804 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 803 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698